]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: lmtp-local - Drop LMTP server log prefixes for event used for mail delivery.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 26 Jul 2019 00:14:11 +0000 (02:14 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 26 Jul 2019 19:58:11 +0000 (19:58 +0000)
src/lmtp/lmtp-local.c

index e43f156d31f3d3b784c1a0d43f4bd06af6656000..4fdf1c641beef84773f9b74afaea5e6017a977ba 100644 (file)
@@ -549,16 +549,20 @@ int lmtp_local_default_deliver(struct client *client,
        struct mail_deliver_input dinput;
        struct mail_deliver_context dctx;
        struct mail_storage *storage;
+       struct event *event;
        enum mail_error mail_error;
        const char *error;
        int ret;
 
+       event = event_create(rcpt->event);
+       event_drop_parent_log_prefixes(event, 3);
+
        i_zero(&dinput);
        dinput.session = lldctx->session;
        dinput.set = lldctx->lda_set;
        dinput.smtp_set = lldctx->smtp_set;
        dinput.session_id = lldctx->session_id;
-       dinput.event_parent = rcpt->event;
+       dinput.event_parent = event;
        dinput.src_mail = lldctx->src_mail;
 
        /* MAIL FROM */
@@ -618,6 +622,7 @@ int lmtp_local_default_deliver(struct client *client,
                ret = -1;
        }
        mail_deliver_deinit(&dctx);
+       event_unref(&event);
 
        return ret;
 }