From c250cb62b8094f86aaac9830348d8d1ada8c801c Mon Sep 17 00:00:00 2001 From: pdmef Date: Fri, 6 May 2005 18:17:07 +0000 Subject: [PATCH] Rocco Rutte: try to fix bug #3972 git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@286 e385b8ad-14ed-0310-8656-cc95a2468c6d --- mx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mx.c b/mx.c index 7f92fb6..8b42726 100644 --- a/mx.c +++ b/mx.c @@ -21,6 +21,7 @@ #include "copy.h" #include "keymap.h" #include "url.h" +#include "sidebar.h" #ifdef USE_COMPRESSED #include "compress.h" @@ -973,6 +974,9 @@ void mx_update_tables (CONTEXT * ctx, int committing) } #undef this_body ctx->msgcount = j; + + /* update sidebar count */ + sidebar_set_buffystats (ctx); } @@ -1073,6 +1077,9 @@ int mx_sync_mailbox (CONTEXT * ctx, int *index_hint) return 0; } + /* update sidebar counts */ + sidebar_set_buffystats (ctx); + /* if we haven't deleted any messages, we don't need to resort */ /* ... except for certain folder formats which need "unsorted" * sort order in order to synchronize folders. @@ -1455,6 +1462,8 @@ void mx_update_context (CONTEXT * ctx, int new_messages) ctx->new++; } } + /* update sidebar count */ + sidebar_set_buffystats (ctx); } /* -- 2.20.1