Skip to content
Snippets Groups Projects
Commit 5542d373 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

Envelope: fixed bug in application of address parts; failure to obtain the...

Envelope: fixed bug in application of address parts; failure to obtain the part would cause inappropriate match success (bug reported by Ron Lee)
parent aeaec526
No related branches found
No related tags found
No related merge requests found
...@@ -466,8 +466,11 @@ static int ext_envelope_operation_execute ...@@ -466,8 +466,11 @@ static int ext_envelope_operation_execute
ret = sieve_match_value(mctx, "", 0); ret = sieve_match_value(mctx, "", 0);
} else { } else {
const char *part = addrp->extract_from(addresses[i]); const char *part = addrp->extract_from(addresses[i]);
if ( part != NULL ) if ( part != NULL )
ret = sieve_match_value(mctx, part, strlen(part)); ret = sieve_match_value(mctx, part, strlen(part));
else
ret = 0;
} }
if ( ret < 0 ) { if ( ret < 0 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.