Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8539:280c92d3a80c HEAD
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 13 Dec 2008 14:59:39 +0200 |
parents | 19e05e1bcb5c |
children | 868ce575a3e6 |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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)