Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2882:dda3fe468ea3 HEAD
When view was synced without expunges, we didn't actually sync the expunges
later anymore.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 14 Nov 2004 00:27:57 +0200 |
parents | bd3f5358de8b |
children | 1f5201e660c1 |
files | src/lib-index/mail-transaction-log-view.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-view.c Fri Nov 12 16:35:49 2004 +0200 +++ b/src/lib-index/mail-transaction-log-view.c Sun Nov 14 00:27:57 2004 +0200 @@ -378,8 +378,13 @@ return -1; while ((ret = log_view_get_next(view, &hdr, &data)) > 0) { - if ((view->type_mask & hdr->type) != 0) - break; + if ((view->type_mask & hdr->type) != 0) { + /* looks like this is within our mask, but expunge + protection may mess up the check. */ + if ((hdr->type & MAIL_TRANSACTION_EXPUNGE) == 0 || + (view->type_mask & MAIL_TRANSACTION_EXPUNGE) != 0) + break; + } /* we don't want this record */ if (skipped_r != NULL)