Removed header MIME-decoding for other instances where addresses need to be parsed.
authorStephan Bosch <stephan@rename-it.nl>
Sat Jan 01 15:21:44 2011 +0100 (2011-01-01)
changeset 1455146a2a9d5cb0
parent 1454 99f8dc1e246a
child 1456 442a5fb51d76
Removed header MIME-decoding for other instances where addresses need to be parsed.
src/lib-sieve/plugins/notify/ext-notify-common.c
src/lib-sieve/plugins/vacation/cmd-vacation.c
     1.1 --- a/src/lib-sieve/plugins/notify/ext-notify-common.c	Sat Jan 01 14:10:53 2011 +0100
     1.2 +++ b/src/lib-sieve/plugins/notify/ext-notify-common.c	Sat Jan 01 15:21:44 2011 +0100
     1.3 @@ -245,7 +245,7 @@
     1.4  			p += 6;
     1.5  		
     1.6  			/* Fetch sender from oriinal message */
     1.7 -			if ( mail_get_headers_utf8(msgdata->mail, "from", &header) >= 0 )
     1.8 +			if ( mail_get_headers(msgdata->mail, "from", &header) >= 0 )
     1.9  				 str_append(out_msg, header[0]); 
    1.10  
    1.11  		} else if ( strncasecmp(p, "$env-from$", 10) == 0 ) {
     2.1 --- a/src/lib-sieve/plugins/vacation/cmd-vacation.c	Sat Jan 01 14:10:53 2011 +0100
     2.2 +++ b/src/lib-sieve/plugins/vacation/cmd-vacation.c	Sat Jan 01 15:21:44 2011 +0100
     2.3 @@ -1074,7 +1074,7 @@
     2.4  	 */
     2.5  	hdsp = _my_address_headers;
     2.6  	while ( *hdsp != NULL ) {
     2.7 -		if ( mail_get_headers_utf8
     2.8 +		if ( mail_get_headers
     2.9  			(msgdata->mail, *hdsp, &headers) >= 0 && headers[0] != NULL ) {	
    2.10  			
    2.11  			if ( _contains_my_address(headers, recipient) ) {