Changeset 5128:35087370cfd4

Show
Ignore:
Timestamp:
2007-04-12 09:42:01 (21 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Simplify IMAP message fetch loop slightly

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5126 r5128  
     12007-04-12 09:16 -0700  Brendan Cully  <brendan@kublai.com>  (eb5db1cd5251) 
     2 
     3        * imap/message.c: Handle a missing or corrupted header cache entry 
     4        (closes #2676) If imap_hcache_get fails, stop parsing the header 
     5        cache and simply refetch from that point on. 
     6 
     72007-04-11 14:19 -0700  Paul Eggert  <eggert@CS.UCLA.EDU>  (ac7355452a60) 
     8 
     9        * configure.ac, muttbug.sh.in: Make mutt more posixly- 
     10        correct (closes #1615). 
     11 
    1122007-04-11 14:06 -0700  Brendan Cully  <brendan@kublai.com>  (5393c104e08a) 
    213 
  • imap/message.c

    r5127 r5128  
    226226    mutt_progress_update (&progress, msgno + 1); 
    227227 
     228    /* we may get notification of new mail while fetching headers */ 
    228229    if (msgno + 1 > fetchlast) 
    229230    { 
    230       fetchlast = msgno + 1; 
    231       while((fetchlast <= msgend) && (! ctx->hdrs[fetchlast])) 
    232         fetchlast++; 
    233  
    234       /* 
    235        * Make one request for everything. This makes fetching headers an 
    236        * order of magnitude faster if you have a large mailbox. 
    237        * 
    238        * If we get more messages while doing this, we make another 
    239        * request for all the new messages. 
    240        */ 
     231      fetchlast = msgend + 1; 
     232 
    241233      snprintf (buf, sizeof (buf), 
    242234        "FETCH %d:%d (UID FLAGS INTERNALDATE RFC822.SIZE %s)", msgno + 1,