]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
expunged and has(_no)_nuls status wasn't reset when switching between mails.
authorTimo Sirainen <tss@iki.fi>
Sat, 13 Dec 2008 12:59:39 +0000 (14:59 +0200)
committerTimo Sirainen <tss@iki.fi>
Sat, 13 Dec 2008 12:59:39 +0000 (14:59 +0200)
This may have caused Dovecot to wrongly assume that a mail was expunged if
the previous one was.

--HG--
branch : HEAD

src/lib-storage/index/index-mail.c

index 6e560ae07031d602f5f415b150ddfd8e49827bc6..7c440ae76c92a5de5a49aa2ffb9041c6006f255d 100644 (file)
@@ -1132,6 +1132,12 @@ static void index_mail_reset(struct index_mail *mail)
        data->save_date = (time_t)-1;
        data->received_date = (time_t)-1;
        data->sent_date.time = (uint32_t)-1;
+
+       mail->mail.mail.seq = 0;
+       mail->mail.mail.uid = 0;
+       mail->mail.mail.expunged = FALSE;
+       mail->mail.mail.has_nuls = FALSE;
+       mail->mail.mail.has_no_nuls = FALSE;
 }
 
 static void check_envelope(struct index_mail *mail)