aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/imap.c b/imap.c
index 053b607c..ec097eb5 100644
--- a/imap.c
+++ b/imap.c
@@ -1240,6 +1240,10 @@ static int imap_mark_seen(int sock, struct query *ctl, int number)
/* mark the given message as seen */
{
(void)ctl;
+
+ /* expunges change the message numbers */
+ number -= expunged;
+
return(gen_transact(sock,
imap_version == IMAP4
? "STORE %d +FLAGS.SILENT (\\Seen)"