Hello,
I've got this following situation. If mail comes from specific sender to
one of the chosen recipients, new recipient is added and I'm trying
either change the Subject or partially change the mail body, but only
for this recipient.
Here's a code so far:
sub filter_end {
my($recip);
foreach $recip (@Recipients) {
if ($recip =~ /[EMAIL PROTECTED]/i or $recip =~
/[EMAIL PROTECTED]/i or $recip =~ /[EMAIL PROTECTED]/i) {
if ($Sender =~ /[EMAIL PROTECTED]/i or $Sender =~
/[EMAIL PROTECTED]/i) {
# Temporarilly change $Subject
action_change_header("Subject","** SPAM ** $Subject");
# Add new recipient
add_recipient('[EMAIL PROTECTED]');
# action_notify_administrator("The mail was resent
$Subject");
# another choice is resend_message
# resend_message('[EMAIL PROTECTED]');
# Set back the orginal Subject
action_change_header("Subject","$Subject");
}
}
}
action_rebuild();
}
Any help is appreciated.
--
Borek
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang