aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-03-13 09:59:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-03-13 09:59:32 +0000
commit5a2c422ccff9c0a0f3777d31c4af38b6c0256fdc (patch)
treec52663738a5d4dfc5c5acc2f240d71a90f384557 /pop3.c
parentfde28f60a7cc6f1cac487b0365e2a2be1fb59f49 (diff)
downloadfetchmail-5a2c422ccff9c0a0f3777d31c4af38b6c0256fdc.tar.gz
fetchmail-5a2c422ccff9c0a0f3777d31c4af38b6c0256fdc.tar.bz2
fetchmail-5a2c422ccff9c0a0f3777d31c4af38b6c0256fdc.zip
Added -U option.
svn path=/trunk/; revision=931
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)