X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mx.c;h=974ce3c22e8385a98fc08755d1b4e21c563c801f;hb=420f3633557ed75a0de989eb065af6e09eed29ba;hp=ed779b2c0a882c596ab16ecdf07e4ad48ae84acc;hpb=f2492164a0ccc27393ea071e6ddc43be0c9b28ad;p=apps%2Fmadmutt.git diff --git a/mx.c b/mx.c index ed779b2..974ce3c 100644 --- a/mx.c +++ b/mx.c @@ -1305,6 +1305,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