dovecot-2.0: mail-log: Add dummy events only for copy/save event...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jul 16 19:23:07 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/f590e5a76d7d
changeset: 11847:f590e5a76d7d
user: Timo Sirainen <tss at iki.fi>
date: Fri Jul 16 17:23:00 2010 +0100
description:
mail-log: Add dummy events only for copy/save events, not others
diffstat:
src/plugins/mail-log/mail-log-plugin.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 222472f295f3 -r f590e5a76d7d src/plugins/mail-log/mail-log-plugin.c
--- a/src/plugins/mail-log/mail-log-plugin.c Fri Jul 16 17:21:13 2010 +0100
+++ b/src/plugins/mail-log/mail-log-plugin.c Fri Jul 16 17:23:00 2010 +0100
@@ -290,7 +290,9 @@
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;
}
More information about the dovecot-cvs
mailing list