summaryrefslogtreecommitdiffstats
path: root/imap/command.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-04-02 16:18:37 -0700
committerBrendan Cully <brendan@kublai.com>2007-04-02 16:18:37 -0700
commitefbc45ebe0ef88020567158dda28f79625587334 (patch)
tree7b3721d7724a0fd5d3a983533519ac409aeb80aa /imap/command.c
parent22fc69bb8d419968aa52e79f21bef8bee73beb06 (diff)
Reset uidnext unconditionally in IMAP new mail check.
Reverts a logic error introduced in [0cb476dc70a7]
Diffstat (limited to 'imap/command.c')
-rw-r--r--imap/command.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/imap/command.c b/imap/command.c
index 7f23a894..83ef3fa5 100644
--- a/imap/command.c
+++ b/imap/command.c
@@ -901,11 +901,7 @@ static void cmd_parse_status (IMAP_DATA* idata, char* s)
if (olduv && olduv == status->uidvalidity)
{
if (oldun < status->uidnext)
- {
inc->new = status->unseen;
- /* forced back to keep detecting new mail until the mailbox is opened */
- status->uidnext = oldun;
- }
}
else if (!olduv && !oldun)
/* first check per session, use recent. might need a flag for this. */
@@ -913,6 +909,9 @@ 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;
+
FREE (&value);
return;
}