Changeset 5047:720070fc62e0

Show
Ignore:
Timestamp:
2007-04-02 16:18:37 (22 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Reset uidnext unconditionally in IMAP new mail check.
Reverts a logic error introduced in [0cb476dc70a7]

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5045 r5047  
    1 2007-04-02 10:48 -0700  Brendan Cully  <brendan@kublai.com>  (aa6f191cfa10) 
     12007-04-02 14:33 -0700  Brendan Cully  <brendan@kublai.com>  (eabef30c9344) 
     2 
     3        * imap/imap.c, imap/imap_private.h, imap/message.c, imap/util.c: Fix a 
     4        segfault in the new mboxcache hcache lookup. idata may not have an 
     5        associated context, so the cache path must use the account info 
     6        instead. For harmony with the other hcache callers, make them all 
     7        canonify the path the same way with imap_hcache_open. 
     8 
     9        * imap/imap.c: Fix segfault in new mboxcache hcache check when 
     10        create is 0 
    211 
    312        * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: 
  • imap/command.c

    r5044 r5047  
    902902        { 
    903903          if (oldun < status->uidnext) 
    904           { 
    905904            inc->new = status->unseen; 
    906             /* forced back to keep detecting new mail until the mailbox is opened */ 
    907             status->uidnext = oldun; 
    908           } 
    909905        } 
    910906        else if (!olduv && !oldun) 
     
    914910          inc->new = status->unseen; 
    915911 
     912        /* forced back to keep detecting new mail until the mailbox is opened */ 
     913        status->uidnext = oldun; 
     914 
    916915        FREE (&value); 
    917916        return;