From: Brendan Cully Date: Wed, 11 Apr 2007 01:10:18 +0000 (-0700) Subject: Save some stats when header cache already exists X-Git-Tag: mutt-1-5-16-rel~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acf5c472a93c0638f3fc492064eae59bafe73d76;p=mutt Save some stats when header cache already exists --- diff --git a/ChangeLog b/ChangeLog index af8e8253..1bd7c7a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,18 @@ -2007-04-10 15:32 -0700 Brendan Cully (c38765da3fe8) +2007-04-10 17:40 -0700 Brendan Cully (8082e4c9f524) + + * hcache.c, imap/imap.c, imap/imap_private.h, imap/message.c, + imap/util.c: Make IMAP header cache layout match body cache. You can + now make them point to the same directory. Each folder will have a + folder.hcache file for the header cache. + + * hcache.c, hcache.h, imap/imap.c, imap/util.c, mh.c, pop.c: Add + hcache path name hook + + * bcache.c, url.c, url.h: Simplify body cache path creation + + * imap/imap.c, imap/imap_private.h, imap/message.c, imap/util.c: + Do not hold hcache open while mailbox is open - it can lead to + lockups * imap/command.c, imap/imap.c, imap/imap_private.h, imap/util.c: Add imap_hcache_del; minor cleanups diff --git a/hcache.c b/hcache.c index 05ae8a2f..a6752458 100644 --- a/hcache.c +++ b/hcache.c @@ -510,6 +510,9 @@ mutt_hcache_per_folder(const char *path, const char *folder, if (ret <= 0) return path; + if (stat (hcpath, &sb) >= 0) + return hcpath; + s = strchr (hcpath + 1, '/'); while (s) {