[PATCH] lib-mail: Set missing invalid_syntax to TRUE
Pali Rohár
pali.rohar at gmail.com
Sat Aug 12 15:36:31 EEST 2017
route is already set to "INVALID_ROUTE" when fill_missing is true, but
setting invalid_syntax was not done yet.
---
src/lib-mail/message-address.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/lib-mail/message-address.c b/src/lib-mail/message-address.c
index 29cac2b..96584e2 100644
--- a/src/lib-mail/message-address.c
+++ b/src/lib-mail/message-address.c
@@ -153,6 +153,7 @@ static int parse_angle_addr(struct message_address_parser_context *ctx)
if (parse_domain_list(ctx) <= 0 || *ctx->parser.data != ':') {
if (ctx->fill_missing)
ctx->addr.route = "INVALID_ROUTE";
+ ctx->addr.invalid_syntax = TRUE;
if (ctx->parser.data == ctx->parser.end)
return -1;
/* try to continue anyway */
--
1.7.9.5
More information about the dovecot
mailing list