# HG changeset patch # User Timo Sirainen # Date 1128157242 -10800 # Node ID fe63974d63655d1a1c76009d9ad5fa2c0859afd5 # Parent 7a9ae11167deed8be90d33b091a87c71ae9f891e Don't try to check for notifications when mbox was opened from input stream. diff -r 7a9ae11167de -r fe63974d6365 src/lib-storage/index/mbox/mbox-storage.c --- 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); } diff -r 7a9ae11167de -r fe63974d6365 src/lib-storage/index/mbox/mbox-storage.h --- 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;