From: Brendan Cully Date: Wed, 4 Apr 2007 18:47:28 +0000 (-0700) Subject: Only reset UIDNEXT if new mail has been detected. X-Git-Tag: mutt-1-5-15-rel~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e691e2178d6a95cadde748383dc5472bc500b6ed;p=mutt Only reset UIDNEXT if new mail has been detected. This prevents mutt from suddenly finding new mail when switching from unknown UIDVALIDITY to known. --- diff --git a/imap/command.c b/imap/command.c index 83ef3fa5..32915520 100644 --- a/imap/command.c +++ b/imap/command.c @@ -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;