X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mx.c;h=8b4272622a3f53b913f9a95cb07849cb2e51a369;hb=5ccacda9b868a0db6bb78ce6e3503861f6b93b67;hp=7f92fb6e0121f75ee6ba35a813986117295b11b4;hpb=814a01519c9605d479201b99eb16c97b0ad8635d;p=apps%2Fmadmutt.git 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); } /*