]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Don't add "detail" field to events if it's empty
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 27 Apr 2020 11:42:59 +0000 (14:42 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 4 May 2020 13:14:20 +0000 (16:14 +0300)
src/lmtp/lmtp-commands.c

index c4d598982565df18eb3960d9e122070d493cf3a0..2c0d57f2cbf6b18273175a631aa4c22ef8ff1fc1 100644 (file)
@@ -80,7 +80,8 @@ int client_default_cmd_rcpt(struct client *client,
           value here.
         */
        event_add_str(rcpt->event, "user", username);
-       event_add_str(rcpt->event, "detail", detail);
+       if (detail[0] != '\0')
+               event_add_str(rcpt->event, "detail", detail);
 
        if (client->lmtp_set->lmtp_proxy) {
                /* proxied? */