diff src/plugins/mbox-snarf/mbox-snarf-plugin.c @ 7798:8e206e25a142 HEAD

Merged latest v1.1 changes.
author Timo Sirainen <tss@iki.fi>
date Mon, 09 Jun 2008 05:11:18 +0300
parents 077bb84e9e77 068f6eefc62b
children 1f20b78f37d7
line wrap: on
line diff
--- a/src/plugins/mbox-snarf/mbox-snarf-plugin.c	Sat May 17 17:50:54 2008 +0300
+++ b/src/plugins/mbox-snarf/mbox-snarf-plugin.c	Mon Jun 09 05:11:18 2008 +0300
@@ -165,9 +165,6 @@
 {
 	struct mbox_snarf_mail_storage *mstorage;
 
-	if (mbox_snarf_next_hook_mail_storage_created != NULL)
-		mbox_snarf_next_hook_mail_storage_created(storage);
-
 	mstorage = p_new(storage->pool, struct mbox_snarf_mail_storage, 1);
 	mstorage->snarf_inbox_path =
 		p_strdup(storage->pool, home_expand(getenv("MBOX_SNARF")));
@@ -175,6 +172,9 @@
 	storage->v.mailbox_open = mbox_snarf_mailbox_open;
 
 	MODULE_CONTEXT_SET(storage, mbox_snarf_storage_module, mstorage);
+
+	if (mbox_snarf_next_hook_mail_storage_created != NULL)
+		mbox_snarf_next_hook_mail_storage_created(storage);
 }
 
 void mbox_snarf_plugin_init(void)