Displaying 1 result from an estimated 1 matches for "mail_log_mailbox_create".
2010 Jul 29
1
Patch: New event "mailbox_create" for the mail_log plugin
...OG_EVENT_MAILBOX_RENAME | \
+ MAIL_LOG_EVENT_MAILBOX_CREATE)
static const char *field_names[] = {
"uid",
@@ -71,6 +73,7 @@
"mailbox_rename",
"flag_change",
"append",
+ "mailbox_create",
NULL
};
@@ -597,6 +600,22 @@
return 0;
}
+static int
+mail_log_mailbox_create(struct mail_storage *storage, const char *name,
+ bool directory)
+{
+ union mail_storage_module_context *lstorage = MAIL_LOG_CONTEXT(storage);
+
+ if (lstorage->super.mailbox_create(storage, name, directory) < 0)
+ return -1;
+
+ if ((mail_log_set.events & MAIL_LOG_EVENT_MAILBOX_...