Changeset 5062:5e0ea671962d for imap

Show
Ignore:
Timestamp:
2007-04-04 11:47:28 (20 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Only reset UIDNEXT if new mail has been detected.
This prevents mutt from suddenly finding new mail when switching
from unknown UIDVALIDITY to known.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/command.c

    r5047 r5062  
    910910          inc->new = status->unseen; 
    911911 
    912         /* forced back to keep detecting new mail until the mailbox is opened */ 
    913         status->uidnext = oldun; 
     912        if (inc->new) 
     913          /* force back to keep detecting new mail until the mailbox is 
     914             opened */ 
     915          status->uidnext = oldun; 
    914916 
    915917        FREE (&value);