Mercurial > dovecot > original-hg > dovecot-1.2
diff src/plugins/mbox-snarf/mbox-snarf-plugin.c @ 8468:d4eab639c253 HEAD
mailbox_open() now takes struct mail_storage ** so it can be changed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 21 Nov 2008 19:24:04 +0200 |
parents | d3cbd3494a8c |
children | e8a8383895df |
line wrap: on
line diff
--- a/src/plugins/mbox-snarf/mbox-snarf-plugin.c Fri Nov 21 18:32:02 2008 +0200 +++ b/src/plugins/mbox-snarf/mbox-snarf-plugin.c Fri Nov 21 19:24:04 2008 +0200 @@ -100,13 +100,15 @@ { struct mbox_snarf_mail_storage *mstorage = MBOX_SNARF_CONTEXT(box->storage); + struct mail_storage *storage; struct mbox_snarf_mailbox *mbox = MBOX_SNARF_CONTEXT(box); if (mbox->spool_mbox == NULL) { /* try to open the spool mbox */ mstorage->open_spool_inbox = TRUE; + storage = box->storage; mbox->spool_mbox = - mailbox_open(box->storage, "INBOX", NULL, + mailbox_open(&storage, "INBOX", NULL, MAILBOX_OPEN_KEEP_RECENT | MAILBOX_OPEN_NO_INDEX_FILES); mstorage->open_spool_inbox = FALSE;