summaryrefslogtreecommitdiffstats
path: root/mx.c
diff options
context:
space:
mode:
Diffstat (limited to 'mx.c')
-rw-r--r--mx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mx.c b/mx.c
index d27a775c..0c1b2ac5 100644
--- a/mx.c
+++ b/mx.c
@@ -1165,6 +1165,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