diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-12-04 06:16:19 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-12-04 06:16:19 +0000 |
commit | 55639c639163e93573af4325f4852537021f705e (patch) | |
tree | a99933df187fb9af610e452a3957376496a5bb61 /driver.c | |
parent | a4dcbe32d4a679eec5bf5e5f69ab749d4fa35535 (diff) | |
download | fetchmail-55639c639163e93573af4325f4852537021f705e.tar.gz fetchmail-55639c639163e93573af4325f4852537021f705e.tar.bz2 fetchmail-55639c639163e93573af4325f4852537021f705e.zip |
Speed optimization; don't test for newness if we know there are
no new messages.
svn path=/trunk/; revision=2257
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1741,7 +1741,7 @@ const struct method *proto; /* protocol method table */ { flag toolarge = NUM_NONZERO(ctl->limit) && msgsizes && (msgsizes[num-1] > ctl->limit); - flag oldmsg = (protocol->is_old && (protocol->is_old)(sock,ctl,num)); + flag oldmsg = (!new) || (protocol->is_old && (protocol->is_old)(sock,ctl,num)); flag fetch_it = !toolarge && (ctl->fetchall || force_retrieval || !oldmsg); flag suppress_delete = FALSE; |