dovecot-1.1: MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES bugfix

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 14 08:57:03 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/58c0b1f833f3
changeset: 7415:58c0b1f833f3
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 14 08:24:19 2008 +0200
description:
MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES bugfix

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-index/mail-index-transaction.c |    3 ++-

diffs (13 lines):

diff -r 45624f5ba358 -r 58c0b1f833f3 src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Fri Mar 14 08:52:14 2008 +0200
+++ b/src/lib-index/mail-index-transaction.c	Fri Mar 14 08:24:19 2008 +0200
@@ -981,7 +981,8 @@ void mail_index_update_flags_range(struc
 			    (t->last_update_idx + 1 == count ||
 			     last_update[1].uid1 > seq2)) {
 				/* we can just update the UID range */
-				last_update->uid2 = seq2;
+				if (mail_transaction_update_want_add(t, &u))
+					last_update->uid2 = seq2;
 				return;
 			}
 		} else if (seq1 > last_update->uid2) {


More information about the dovecot-cvs mailing list