dovecot: If view is inconsistent, show the mail as expunged.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 15 10:06:00 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/9b9436231ce0
changeset: 6376:9b9436231ce0
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 15 09:56:29 2007 +0300
description:
If view is inconsistent, show the mail as expunged.
diffstat:
1 file changed, 5 insertions(+)
src/lib-storage/index/index-mail.c | 5 +++++
diffs (15 lines):
diff -r fc2f5607108d -r 9b9436231ce0 src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c Sat Sep 15 09:22:16 2007 +0300
+++ b/src/lib-storage/index/index-mail.c Sat Sep 15 09:56:29 2007 +0300
@@ -978,6 +978,11 @@ void index_mail_set_seq(struct mail *_ma
data->seq = seq;
data->flags = rec->flags & MAIL_FLAGS_NONRECENT;
+ if (mail_index_view_is_inconsistent(mail->trans->trans_view)) {
+ mail_set_expunged(&mail->mail.mail);
+ return;
+ }
+
if ((mail->wanted_fields & (MAIL_FETCH_NUL_STATE |
MAIL_FETCH_IMAP_BODY |
MAIL_FETCH_IMAP_BODYSTRUCTURE)) != 0) {
More information about the dovecot-cvs
mailing list