Skip to content

Commit

Permalink
lda: Allow empty envelope sender.
Browse files Browse the repository at this point in the history
Fix by Martin Waschbüsch.
  • Loading branch information
stephanbosch committed Apr 8, 2018
1 parent fa4abf2 commit 6553f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lda/main.c
Expand Up @@ -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);
Expand Down

0 comments on commit 6553f20

Please sign in to comment.