# HG changeset patch # User Timo Sirainen # Date 1189839389 -10800 # Node ID 9b9436231ce08339425090f6251263308e720139 # Parent fc2f5607108d8fef438c41d8811219da07543ff5 If view is inconsistent, show the mail as expunged. 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 @@ 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) {