]> Pileus Git - ~andy/fetchmail/commitdiff
Speed optimization; don't test for newness if we know there are
authorEric S. Raymond <esr@thyrsus.com>
Fri, 4 Dec 1998 06:16:19 +0000 (06:16 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 4 Dec 1998 06:16:19 +0000 (06:16 -0000)
no new messages.

svn path=/trunk/; revision=2257

driver.c

index 720656147b6f53c46a2d86640b04f64f9275e476..f599cccec3fbb585c8ed7aab5596aa5a199b6014 100644 (file)
--- 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;