aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-12-04 06:16:19 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-12-04 06:16:19 +0000
commit55639c639163e93573af4325f4852537021f705e (patch)
treea99933df187fb9af610e452a3957376496a5bb61 /driver.c
parenta4dcbe32d4a679eec5bf5e5f69ab749d4fa35535 (diff)
downloadfetchmail-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 72065614..f599ccce 100644
--- a/driver.c
+++ b/driver.c
@@ -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;