dovecot-1.1: expunged and has(_no)_nuls status wasn't reset when...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Dec 13 14:59:58 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/09fa46d40dc8
changeset: 8043:09fa46d40dc8
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 6dc81e6c0074 -r 09fa46d40dc8 src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c Sat Dec 13 13:59:56 2008 +0200
+++ b/src/lib-storage/index/index-mail.c Sat Dec 13 14:59:39 2008 +0200
@@ -1108,6 +1108,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