]> granicus.if.org Git - neomutt/commitdiff
Only sync changed messages back to hcache on mailbox sync
authorRocco Rutte <pdmef@gmx.net>
Tue, 28 Apr 2009 09:17:32 +0000 (11:17 +0200)
committerRocco Rutte <pdmef@gmx.net>
Tue, 28 Apr 2009 09:17:32 +0000 (11:17 +0200)
ChangeLog
imap/imap.c

index 23147abd22e0b105da702c9195a398199999484e..64a4a1cec46527f9126474b8725911bff2c065bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2009-04-28 11:15 +0200  Rocco Rutte  <pdmef@gmx.net>  (c60ce9a3bae7)
+
+       * doc/manual.xml.head: For spam detection, mention $imap_headers.
+       Closes #3223.
+
+2009-04-28 11:01 +0200  Rocco Rutte  <pdmef@gmx.net>  (b240c964db53)
+
+       * ChangeLog, doc/manual.xml.head: Manual: Fix typo and reword
+       paragraph
+
 2009-04-26 21:09 +0200  Rocco Rutte  <pdmef@gmx.net>  (9fa4a3e74355)
 
        * UPDATING, doc/manual.xml.head, pop.c: POP: Support hcache updating,
index 970c0c89ddb504e904d786d4a54ce255637b936f..96a0f392a802b7e5fafe75f72d711616cf068472 100644 (file)
@@ -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. */