Changeset 5128:35087370cfd4
- Timestamp:
- 2007-04-12 09:42:01 (21 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Simplify IMAP message fetch loop slightly
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5126
|
r5128
|
|
| | 1 | 2007-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 | |
| | 7 | 2007-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 | |
| 1 | 12 | 2007-04-11 14:06 -0700 Brendan Cully <brendan@kublai.com> (5393c104e08a) |
| 2 | 13 | |
-
|
r5127
|
r5128
|
|
| 226 | 226 | mutt_progress_update (&progress, msgno + 1); |
| 227 | 227 | |
| | 228 | /* we may get notification of new mail while fetching headers */ |
| 228 | 229 | if (msgno + 1 > fetchlast) |
| 229 | 230 | { |
| 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 | |
| 241 | 233 | snprintf (buf, sizeof (buf), |
| 242 | 234 | "FETCH %d:%d (UID FLAGS INTERNALDATE RFC822.SIZE %s)", msgno + 1, |