Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/mbox/mbox-transaction.c @ 4848:967de900c73a HEAD
Mailbox list indexing and related changes. Currently works only with
maildir and mmap_disable=no. This allows doing STATUS to synced mailboxes
without opening their index files at all.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 26 Nov 2006 00:17:39 +0200 |
parents | 6272561fa12d |
children | d7bd3f80c6f2 |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-transaction.c Sun Nov 26 00:12:11 2006 +0200 +++ b/src/lib-storage/index/mbox/mbox-transaction.c Sun Nov 26 00:17:39 2006 +0200 @@ -79,7 +79,8 @@ { struct mailbox *box = MAIL_STORAGE_INDEX(t->view->index); - if (strcmp(box->storage->name, MBOX_STORAGE_NAME) == 0) { + /* index can be for mailbox list index, in which case box=NULL */ + if (box != NULL && strcmp(box->storage->name, MBOX_STORAGE_NAME) == 0) { struct mbox_mailbox *mbox = (struct mbox_mailbox *)box; struct mbox_transaction_context *mt;