From: Timo Sirainen Date: Fri, 16 Jul 2010 16:23:00 +0000 (+0100) Subject: mail-log: Add dummy events only for copy/save events, not others X-Git-Tag: 2.0.rc3~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=daccffdfe982210ab0c020e394818c20972c6b63;p=thirdparty%2Fdovecot%2Fcore.git mail-log: Add dummy events only for copy/save events, not others --- diff --git a/src/plugins/mail-log/mail-log-plugin.c b/src/plugins/mail-log/mail-log-plugin.c index 24973b8b11..c4e4fa7018 100644 --- a/src/plugins/mail-log/mail-log-plugin.c +++ b/src/plugins/mail-log/mail-log-plugin.c @@ -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; }