Changeset 5043:aef7a5bf213c for imap/command.c
- Timestamp:
- 2007-04-02 10:36:20 (22 months ago)
- Branch:
- HEAD
- Files:
-
- 1 modified
-
imap/command.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imap/command.c
r5033 r5043 822 822 IMAP_STATUS *status, sb; 823 823 int olduv, oldun; 824 #if USE_HCACHE825 header_cache_t *hc = NULL;826 unsigned int *uidvalidity = NULL;827 unsigned int *uidnext = NULL;828 #endif829 824 830 825 mailbox = imap_next_word (s); … … 912 907 mailbox, olduv, oldun, status->unseen)); 913 908 914 #if USE_HCACHE915 /* fetch seen info from hcache if we haven't seen it yet this session */916 if (!olduv && !oldun)917 {918 hc = mutt_hcache_open (HeaderCache, inc->path);919 if (hc)920 {921 uidvalidity = mutt_hcache_fetch_raw (hc, "/UIDVALIDITY", imap_hcache_keylen);922 uidnext = mutt_hcache_fetch_raw (hc, "/UIDNEXT", imap_hcache_keylen);923 olduv = uidvalidity ? *uidvalidity : 0;924 oldun = uidnext ? *uidnext : 0;925 FREE (&uidvalidity);926 FREE (&uidnext);927 mutt_hcache_close (hc);928 dprint (3, (debugfile, "hcache olduv %d, oldun %d\n", olduv, oldun));929 }930 }931 #endif932 909 if (olduv && olduv == status->uidvalidity) 933 910 {
