]> granicus.if.org Git - mutt/commitdiff
POP: Respect $message_cache_clean
authorRocco Rutte <pdmef@gmx.net>
Tue, 11 Dec 2007 13:50:09 +0000 (14:50 +0100)
committerRocco Rutte <pdmef@gmx.net>
Tue, 11 Dec 2007 13:50:09 +0000 (14:50 +0100)
pop.c

diff --git a/pop.c b/pop.c
index adb0c8de684f28ef48a42c77b69bbb31af0dc1f0..273bbf5b7267a604da9643e2ca028e4545b727c1 100644 (file)
--- a/pop.c
+++ b/pop.c
@@ -336,7 +336,8 @@ static int pop_fetch_headers (CONTEXT *ctx)
    * clean up cache, i.e. wipe messages deleted outside
    * the availability of our cache
    */
-  mutt_bcache_list (pop_data->bcache, msg_cache_check, (void*)ctx);
+  if (option (OPTMESSAGECACHECLEAN))
+    mutt_bcache_list (pop_data->bcache, msg_cache_check, (void*)ctx);
 
   mutt_clear_error ();
   return (new_count - old_count);