From: Stephan Bosch Date: Sun, 8 Apr 2018 09:28:19 +0000 (+0200) Subject: lda: Allow empty envelope sender. X-Git-Tag: 2.3.9~2043 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6553f20bb31b5f0eebb73a0db526f00816b47d71;p=thirdparty%2Fdovecot%2Fcore.git lda: Allow empty envelope sender. Fix by Martin Waschbüsch. --- diff --git a/src/lda/main.c b/src/lda/main.c index bab20e88ad..1d7c8473d2 100644 --- a/src/lda/main.c +++ b/src/lda/main.c @@ -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);