aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index bf91bc92..4a232a1a 100644
--- a/pop3.c
+++ b/pop3.c
@@ -153,8 +153,11 @@ static int pop3_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp)
{
char id [IDLEN+1];
- gen_send(sockfp,"LAST");
- ok = pop3_ok(sockfp, buf);
+ if (!ctl->server.uidl) {
+ gen_send(sockfp,"LAST");
+ ok = pop3_ok(sockfp, buf);
+ } else
+ ok = 1;
if (ok == 0)
{
if (sscanf(buf, "%d", &last) == 0)