X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mx.c;h=2c8d31b3289311e25a042f52b68e558008e42bcc;hb=d429e6df5ef16a8dfd7bcbeb25b0260eb8e5d96f;hp=a01dde89aa7be7cf3adea6e10b37a7933b3a2980;hpb=9b2de495f7633f79348842cf19ea62e8561a27cc;p=apps%2Fmadmutt.git diff --git a/mx.c b/mx.c index a01dde8..2c8d31b 100644 --- a/mx.c +++ b/mx.c @@ -487,7 +487,7 @@ static int mx_open_mailbox_append (CONTEXT * ctx, int flags) } return (-1); } - fseek (ctx->fp, 0, 2); + fseeko (ctx->fp, 0, 2); break; case M_MH: @@ -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);