dovecot-2.0: mail-log: Show lda/lmtp deliveries as "save", not "...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 4 17:40:16 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/1c2d74e3e312
changeset: 11470:1c2d74e3e312
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 04 15:39:58 2010 +0100
description:
mail-log: Show lda/lmtp deliveries as "save", not "copy from Dovecot Delivery Mail".
diffstat:
src/plugins/mail-log/mail-log-plugin.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 5260724def1f -r 1c2d74e3e312 src/plugins/mail-log/mail-log-plugin.c
--- a/src/plugins/mail-log/mail-log-plugin.c Fri Jun 04 15:25:03 2010 +0100
+++ b/src/plugins/mail-log/mail-log-plugin.c Fri Jun 04 15:39:58 2010 +0100
@@ -297,9 +297,14 @@
(struct mail_log_mail_txn_context *)txn;
const char *desc;
- desc = t_strdup_printf("copy from %s",
- str_sanitize(mailbox_get_name(src->box),
- MAILBOX_NAME_LOG_LEN));
+ if (strcmp(src->box->storage->name, "raw") == 0) {
+ /* special case: lda/lmtp is saving a mail */
+ desc = "save";
+ } else {
+ desc = t_strdup_printf("copy from %s",
+ str_sanitize(mailbox_get_name(src->box),
+ MAILBOX_NAME_LOG_LEN));
+ }
mail_log_append_mail_message(ctx, dst, MAIL_LOG_EVENT_SAVE, desc);
}
More information about the dovecot-cvs
mailing list