]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail-log: Add dummy events only for copy/save events, not others
authorTimo Sirainen <tss@iki.fi>
Fri, 16 Jul 2010 16:23:00 +0000 (17:23 +0100)
committerTimo Sirainen <tss@iki.fi>
Fri, 16 Jul 2010 16:23:00 +0000 (17:23 +0100)
src/plugins/mail-log/mail-log-plugin.c

index 24973b8b119cd271d3fe90d5835c925797c9e5cb..c4e4fa70187502f7480bc0618fb3c2b55c5cb4f2 100644 (file)
@@ -290,7 +290,9 @@ mail_log_append_mail_message(struct mail_log_mail_txn_context *ctx,
                MAIL_LOG_USER_CONTEXT(mail->box->storage->user);
 
        if ((muser->events & event) == 0) {
-               mail_log_add_dummy_msg(ctx, event);
+               if (event == MAIL_LOG_EVENT_SAVE ||
+                   event == MAIL_LOG_EVENT_COPY)
+                       mail_log_add_dummy_msg(ctx, event);
                return;
        }