From e2e81d93cde2fbd4d2b22eea617edf2e4af56ff1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 4 Jun 2010 15:39:58 +0100 Subject: [PATCH] mail-log: Show lda/lmtp deliveries as "save", not "copy from Dovecot Delivery Mail". --HG-- branch : HEAD --- src/plugins/mail-log/mail-log-plugin.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/plugins/mail-log/mail-log-plugin.c b/src/plugins/mail-log/mail-log-plugin.c index 82b4795e6c..e0be1d3518 100644 --- a/src/plugins/mail-log/mail-log-plugin.c +++ b/src/plugins/mail-log/mail-log-plugin.c @@ -297,9 +297,14 @@ static void mail_log_mail_copy(void *txn, struct mail *src, struct mail *dst) (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); } -- 2.47.3