]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 15 May 2018 08:59:40 +0000 (11:59 +0300)
Fix by Martin Waschbüsch.

src/lda/main.c

index 35f159c9e19132f943157026d839bc72888ff512..67bd3de6008c3e05f928af92b8ccc459291a54d1 100644 (file)
@@ -330,7 +330,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);