X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.c;h=e45fda311104a9c9f9ec197324824b5518fc2814;hp=ed779b2c0a882c596ab16ecdf07e4ad48ae84acc;hb=d70c5dfc0740eafa116245d8331460434779405e;hpb=6e0187ce721be4997bef32d724528f8976df89d6 diff --git a/mx.c b/mx.c index ed779b2..e45fda3 100644 --- a/mx.c +++ b/mx.c @@ -17,6 +17,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "mutt.h" #include "mx.h" #include "rfc2047.h" @@ -1305,6 +1309,8 @@ int mx_sync_mailbox (CONTEXT *ctx, int *index_hint) ctx->deleted = 0; } } + else if (ctx->last_tag && ctx->last_tag->deleted) + ctx->last_tag = NULL; /* reset last tagged msg now useless */ } /* really only for IMAP - imap_sync_mailbox results in a call to