dovecot-1.2: expunged and has(_no)_nuls status wasn't reset when...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 13 14:59:55 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/280c92d3a80c
changeset: 8539:280c92d3a80c
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 13 14:59:39 2008 +0200
description:
expunged and has(_no)_nuls status wasn't reset when switching between mails.
This may have caused Dovecot to wrongly assume that a mail was expunged if
the previous one was.

diffstat:

1 file changed, 6 insertions(+)
src/lib-storage/index/index-mail.c |    6 ++++++

diffs (16 lines):

diff -r 19e05e1bcb5c -r 280c92d3a80c src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c	Sat Dec 13 14:28:28 2008 +0200
+++ b/src/lib-storage/index/index-mail.c	Sat Dec 13 14:59:39 2008 +0200
@@ -1132,6 +1132,12 @@ static void index_mail_reset(struct inde
 	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)


More information about the dovecot-cvs mailing list