[PATCH] lib-mail: Set missing invalid_syntax to TRUE

Pali Rohár pali.rohar at gmail.com
Mon Oct 2 15:12:43 EEST 2017


On Saturday 12 August 2017 14:36:31 Pali Rohár wrote:
> 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 */

Hi! I would like to remind this patch.

-- 
Pali Rohár
pali.rohar at gmail.com


More information about the dovecot mailing list