Displaying 1 result from an estimated 1 matches for "mail_log_set".
2010 Jul 29
1
Patch: New event "mailbox_create" for the mail_log plugin
...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_CREATE) == 0)
+ return 0;
+
+ i_info("Mailbox created: %s", str_sanitize(name, MAILBOX_NAME_LOG_LEN));
+ return 0;
+}
+
static void mail_log_mail_storage_created(struct mail_storage *storage)
{
union mail_storage_module_context *lstorage;
@@ -604,6 +...