From 57b1da622334a432f483f031eec0cae85831b7f5 Mon Sep 17 00:00:00 2001 From: Stephan Bosch <stephan@rename-it.nl> Date: Fri, 19 Dec 2008 17:20:13 +0100 Subject: [PATCH] Enotify: mailto: excluded body 'header' in URI from the header field body verification. --- src/lib-sieve/plugins/enotify/ntfy-mailto.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib-sieve/plugins/enotify/ntfy-mailto.c b/src/lib-sieve/plugins/enotify/ntfy-mailto.c index 50c806b8a..8da979c7a 100644 --- a/src/lib-sieve/plugins/enotify/ntfy-mailto.c +++ b/src/lib-sieve/plugins/enotify/ntfy-mailto.c @@ -332,9 +332,13 @@ static bool _uri_parse_headers if ( *p != '\0' ) p++; /* Verify field body */ - if ( !rfc2822_header_field_body_verify(str_c(field), str_len(field)) ) { - *error_r = "invalid header field body"; - return FALSE; + if ( hname_type == _HNAME_BODY ) { + // FIXME: verify body ... + } else { + if ( !rfc2822_header_field_body_verify(str_c(field), str_len(field)) ) { + *error_r = "invalid header field body"; + return FALSE; + } } /* Assign field body */ -- GitLab