From 129682c4e5fdf5b7541d3c3f19c85c5ce853813c Mon Sep 17 00:00:00 2001 From: pdmef Date: Sun, 23 Oct 2005 02:01:24 +0000 Subject: [PATCH] Rocco Rutte: - more cleanup for (don't kill $read_inc, don't do custom message to not loose progress...) git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@560 e385b8ad-14ed-0310-8656-cc95a2468c6d --- VERSION.svn | 2 +- mx.c | 14 +++----------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/VERSION.svn b/VERSION.svn index 30ce115..c7884c0 100644 --- a/VERSION.svn +++ b/VERSION.svn @@ -1 +1 @@ -559 +560 diff --git a/mx.c b/mx.c index 28eb914..2c8d31b 100644 --- a/mx.c +++ b/mx.c @@ -1441,7 +1441,6 @@ int mx_rebuild_cache (void) { #else int i = 0, magic = 0; CONTEXT* ctx = NULL; - char* buf = NULL; BUFFY* b = NULL; if (list_empty(Incoming)) { @@ -1449,27 +1448,20 @@ int mx_rebuild_cache (void) { return (1); } - ReadInc = 0; - for (i = 0; i < Incoming->length; i++) { b = (BUFFY*) Incoming->data[i]; magic = mx_get_magic (b->path); if (magic != M_MAILDIR && magic != M_MH #ifdef USE_IMAP - && magic != M_IMAP + && magic != M_IMAP #endif - ) + ) continue; - buf = str_dup (b->path); - mutt_pretty_mailbox (buf); - mutt_message (_("Rebuilding cache for %s..."), buf); if ((ctx = mx_open_mailbox (b->path, - M_READONLY | M_QUIET | M_NOSORT | M_COUNT, + M_READONLY | M_NOSORT | M_COUNT, NULL)) != NULL) mx_close_mailbox (ctx, 0); - mem_free (&buf); } - mutt_clear_error (); return (0); -- 2.20.1