summaryrefslogtreecommitdiffstats
path: root/imap/command.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-04-04 11:47:28 -0700
committerBrendan Cully <brendan@kublai.com>2007-04-04 11:47:28 -0700
commite691e2178d6a95cadde748383dc5472bc500b6ed (patch)
treecdfb95b9e2b70a6dac67abb379988e86b1bad9e1 /imap/command.c
parent6a38dedff73432e9801b4cf36f2d7fbe39d27e40 (diff)
Only reset UIDNEXT if new mail has been detected.
This prevents mutt from suddenly finding new mail when switching from unknown UIDVALIDITY to known.
Diffstat (limited to 'imap/command.c')
-rw-r--r--imap/command.c6
1 files changed, 4 insertions, 2 deletions
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;