summaryrefslogtreecommitdiffstats
path: root/mh.c
diff options
context:
space:
mode:
authorMichael Elkins <me@sigpipe.org>2013-01-17 02:43:41 +0000
committerMichael Elkins <me@sigpipe.org>2013-01-17 02:43:41 +0000
commit9736319d31cd9ee8d9fcb85199d80a5620d5161d (patch)
treeb20768c6a4b7d876c15343ebba6d7ed34f9b6aa3 /mh.c
parent5e0b295a66b7d5c414847fbd07c345da19cc2fe2 (diff)
use a separate flag for mutt_hcache_store() to signal that the gettimeofday() value should be substituted, so that a 0 uidvalidity can be used by the imap driver.
closes #3501
Diffstat (limited to 'mh.c')
-rw-r--r--mh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mh.c b/mh.c
index 21f516bb..7a8d7756 100644
--- a/mh.c
+++ b/mh.c
@@ -1080,9 +1080,9 @@ static void maildir_delayed_parsing (CONTEXT * ctx, struct maildir **md,
p->header_parsed = 1;
#if USE_HCACHE
if (ctx->magic == M_MH)
- mutt_hcache_store (hc, p->h->path, p->h, 0, strlen);
+ mutt_hcache_store (hc, p->h->path, p->h, 0, strlen, M_GENERATE_UIDVALIDITY);
else
- mutt_hcache_store (hc, p->h->path + 3, p->h, 0, &maildir_hcache_keylen);
+ mutt_hcache_store (hc, p->h->path + 3, p->h, 0, &maildir_hcache_keylen, M_GENERATE_UIDVALIDITY);
#endif
} else
mutt_free_header (&p->h);
@@ -1714,9 +1714,9 @@ int mh_sync_mailbox (CONTEXT * ctx, int *index_hint)
{
if (ctx->magic == M_MAILDIR)
mutt_hcache_store (hc, ctx->hdrs[i]->path + 3, ctx->hdrs[i],
- 0, &maildir_hcache_keylen);
+ 0, &maildir_hcache_keylen, M_GENERATE_UIDVALIDITY);
else if (ctx->magic == M_MH)
- mutt_hcache_store (hc, ctx->hdrs[i]->path, ctx->hdrs[i], 0, strlen);
+ mutt_hcache_store (hc, ctx->hdrs[i]->path, ctx->hdrs[i], 0, strlen, M_GENERATE_UIDVALIDITY);
}
#endif