From: Rocco Rutte Date: Tue, 28 Apr 2009 09:17:32 +0000 (+0200) Subject: Only sync changed messages back to hcache on mailbox sync X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6f74ca50a836454b24b9293b543fdb0494591c7;p=neomutt Only sync changed messages back to hcache on mailbox sync --- diff --git a/ChangeLog b/ChangeLog index 23147abd2..64a4a1cec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2009-04-28 11:15 +0200 Rocco Rutte (c60ce9a3bae7) + + * doc/manual.xml.head: For spam detection, mention $imap_headers. + Closes #3223. + +2009-04-28 11:01 +0200 Rocco Rutte (b240c964db53) + + * ChangeLog, doc/manual.xml.head: Manual: Fix typo and reword + paragraph + 2009-04-26 21:09 +0200 Rocco Rutte (9fa4a3e74355) * UPDATING, doc/manual.xml.head, pop.c: POP: Support hcache updating, diff --git a/imap/imap.c b/imap/imap.c index 970c0c89d..96a0f392a 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -1208,10 +1208,6 @@ int imap_sync_mailbox (CONTEXT* ctx, int expunge, int* index_hint) { h = ctx->hdrs[n]; -#if USE_HCACHE - imap_hcache_put (idata, h); -#endif - if (h->deleted) { imap_cache_del (idata, h); @@ -1222,6 +1218,9 @@ int imap_sync_mailbox (CONTEXT* ctx, int expunge, int* index_hint) if (h->active && h->changed) { +#if USE_HCACHE + imap_hcache_put (idata, h); +#endif /* if the message has been rethreaded or attachments have been deleted * we delete the message and reupload it. * This works better if we're expunging, of course. */