Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/maildir/maildir-sync.c @ 4894:24afafbfe47b HEAD
Make sure the mailbox is opened when transaction is started (fixes deliver).
Also did some other API cleanups, mailbox index opening can't fail anymore.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 10 Dec 2006 15:00:44 +0200 |
parents | 967de900c73a |
children | 5b4c9b20eba0 |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Sun Dec 10 14:59:45 2006 +0200 +++ b/src/lib-storage/index/maildir/maildir-sync.c Sun Dec 10 15:00:44 2006 +0200 @@ -1397,10 +1397,8 @@ struct maildir_sync_context *ctx; int ret = 0; - if (!box->opened) { - if (index_storage_mailbox_open(&mbox->ibox) < 0) - return index_mailbox_sync_init(box, 0, TRUE); - } + if (!box->opened) + index_storage_mailbox_open(&mbox->ibox); if ((flags & MAILBOX_SYNC_FLAG_FAST) == 0 || mbox->ibox.sync_last_check + MAILBOX_FULL_SYNC_INTERVAL <=