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

Vacation extension: now inhibits replies to messages from sender listed in :addresses.

parent f9b1c10e
No related branches found
No related tags found
No related merge requests found
......@@ -1039,13 +1039,30 @@ static bool act_vacation_commit
}
/* Are we perhaps trying to respond to ourselves ?
* (FIXME: verify this to :addresses as well?)
*/
if ( sieve_address_compare(sender, recipient, TRUE)
== 0 ) {
sieve_result_global_log(aenv, "discarded vacation reply to own address");
if ( sieve_address_compare(sender, recipient, TRUE) == 0 ) {
sieve_result_global_log(aenv,
"discarded vacation reply to own address <%s>",
str_sanitize(sender, 128));
return TRUE;
}
/* Are we perhaps trying to respond to one of our alternative :addresses?
*/
if ( ctx->addresses != NULL ) {
const char * const *alt_address = ctx->addresses;
while ( *alt_address != NULL ) {
if ( sieve_address_compare(sender, *alt_address, TRUE) == 0 ) {
sieve_result_global_log(aenv,
"discarded vacation reply to own address <%s> "
"(as specified using :addresses argument)",
str_sanitize(sender, 128));
return TRUE;
}
alt_address++;
}
}
/* Did whe respond to this user before? */
if ( sieve_action_duplicate_check_available(senv) ) {
......
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.