]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Another fix to mail_index_transaction_get_next_uid() fix.
authorTimo Sirainen <tss@iki.fi>
Thu, 22 Jan 2009 00:39:52 +0000 (02:39 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 22 Jan 2009 00:39:52 +0000 (02:39 +0200)
--HG--
branch : HEAD

src/lib-index/mail-index-transaction.c

index e1015acf70ab969154dea9a6e313dfbbf92d93c6..b7f73af8d7abb531a5662dbe7c4d0aeab0f85375 100644 (file)
@@ -547,7 +547,7 @@ uint32_t mail_index_transaction_get_next_uid(struct mail_index_transaction *t)
        if (array_is_created(&t->appends) && t->highest_append_uid != 0) {
                /* get next_uid from appends if they have UIDs */
                i_assert(next_uid <= t->highest_append_uid);
-               next_uid = t->highest_append_uid;
+               next_uid = t->highest_append_uid + 1;
        }
 
        /* see if it's been updated in pre/post header changes */