Changeset 5047:720070fc62e0
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5045
|
r5047
|
|
| 1 | | 2007-04-02 10:48 -0700 Brendan Cully <brendan@kublai.com> (aa6f191cfa10) |
| | 1 | 2007-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 |
| 2 | 11 | |
| 3 | 12 | * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: |
-
|
r5044
|
r5047
|
|
| 902 | 902 | { |
| 903 | 903 | if (oldun < status->uidnext) |
| 904 | | { |
| 905 | 904 | inc->new = status->unseen; |
| 906 | | /* forced back to keep detecting new mail until the mailbox is opened */ |
| 907 | | status->uidnext = oldun; |
| 908 | | } |
| 909 | 905 | } |
| 910 | 906 | else if (!olduv && !oldun) |
| … |
… |
|
| 914 | 910 | inc->new = status->unseen; |
| 915 | 911 | |
| | 912 | /* forced back to keep detecting new mail until the mailbox is opened */ |
| | 913 | status->uidnext = oldun; |
| | 914 | |
| 916 | 915 | FREE (&value); |
| 917 | 916 | return; |