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:
1 modified

Legend:

Unmodified
Added
Removed
  • 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,