]> granicus.if.org Git - mutt/commitdiff
Only reset UIDNEXT if new mail has been detected.
authorBrendan Cully <brendan@kublai.com>
Wed, 4 Apr 2007 18:47:28 +0000 (11:47 -0700)
committerBrendan Cully <brendan@kublai.com>
Wed, 4 Apr 2007 18:47:28 +0000 (11:47 -0700)
This prevents mutt from suddenly finding new mail when switching
from unknown UIDVALIDITY to known.

imap/command.c

index 83ef3fa572b0ba15a2b30d0c6ce11dfe47ac4a5e..329155208cc5e3544dee8f72d8e7b89ac1ad1e29 100644 (file)
@@ -909,8 +909,10 @@ static void cmd_parse_status (IMAP_DATA* idata, char* s)
        else
           inc->new = status->unseen;
 
-        /* forced back to keep detecting new mail until the mailbox is opened */
-        status->uidnext = oldun;
+       if (inc->new)
+         /* force back to keep detecting new mail until the mailbox is
+            opened */
+         status->uidnext = oldun;
 
         FREE (&value);
         return;