]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lda: Allow empty envelope sender.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 8 Apr 2018 09:28:19 +0000 (11:28 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 8 Apr 2018 09:28:19 +0000 (11:28 +0200)
Fix by Martin Waschbüsch.

src/lda/main.c

index bab20e88ad3f751cfdf51e25159c93edf53d6f39..1d7c8473d2c0f31096dd181ba95d9b5cc77b6292 100644 (file)
@@ -332,7 +332,8 @@ int main(int argc, char *argv[])
                case 'f':
                        /* envelope sender address */
                        if (smtp_address_parse_path(ctx.pool, optarg,
-                           SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL,
+                           SMTP_ADDRESS_PARSE_FLAG_BRACKETS_OPTIONAL |
+                               SMTP_ADDRESS_PARSE_FLAG_ALLOW_EMPTY,
                            &mail_from, &errstr) < 0) {
                                i_fatal_status(EX_USAGE,
                                        "Invalid -f parameter: %s", errstr);