Mercurial > dovecot > core-2.2
changeset 3631:fe63974d6365 HEAD
Don't try to check for notifications when mbox was opened from input stream.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 01 Oct 2005 12:00:42 +0300 |
parents | 7a9ae11167de |
children | 277906fcc8ea |
files | src/lib-storage/index/mbox/mbox-storage.c src/lib-storage/index/mbox/mbox-storage.h |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-storage.c Fri Sep 30 23:25:58 2005 +0300 +++ b/src/lib-storage/index/mbox/mbox-storage.c Sat Oct 01 12:00:42 2005 +0300 @@ -597,6 +597,7 @@ i_stream_ref(input); mbox->mbox_file_stream = input; mbox->mbox_readonly = TRUE; + mbox->no_mbox_file = TRUE; mbox->path = "(read-only mbox stream)"; return &mbox->ibox.box; @@ -1004,7 +1005,7 @@ if (callback == NULL) index_mailbox_check_remove_all(&mbox->ibox); - else + else if (!mbox->no_mbox_file) index_mailbox_check_add(&mbox->ibox, mbox->path); }
--- a/src/lib-storage/index/mbox/mbox-storage.h Fri Sep 30 23:25:58 2005 +0300 +++ b/src/lib-storage/index/mbox/mbox-storage.h Sat Oct 01 12:00:42 2005 +0300 @@ -40,6 +40,7 @@ uint32_t mbox_ext_idx; + unsigned int no_mbox_file:1; unsigned int mbox_sync_dirty:1; unsigned int mbox_do_dirty_syncs:1; unsigned int mbox_very_dirty_syncs:1;