Changeset 5371:97aa20438c47 for imap

Show
Ignore:
Timestamp:
2008-05-12 23:15:07 (6 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Terminate open IMAP message sets at end of mailbox even if the last message is inactive.
Closes #3002.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/imap.c

    r5283 r5371  
    861861 * Params: idata: IMAP_DATA containing context containing header set 
    862862 *         buf: to write message set into 
    863  *         buflen: length of buffer 
    864863 *         flag: enum of flag type on which to filter 
    865864 *         changed: include only changed messages in message set 
     
    943942        mutt_buffer_printf (buf, ":%u", HEADER_DATA (hdrs[n])->uid); 
    944943    } 
    945     /* this message is not expunged and doesn't match. End current set. */ 
    946     else if (setstart && hdrs[n]->active) 
     944    /* End current set if message doesn't match or we've reached the end 
     945     * of the mailbox via inactive messages following the last match. */ 
     946    else if (setstart && (hdrs[n]->active || n == idata->ctx->msgcount-1)) 
    947947    { 
    948948      if (HEADER_DATA (hdrs[n-1])->uid > setstart)