[Mimedefang] delete_recipient not removing the recipient from @Recipients

Matthew Schumacher matt.s at aptalaska.net
Thu Dec 13 17:33:15 EST 2012


MD Users,

Any reason why I wouldn't want to do this:

sub delete_recipient ($) {
    my($recip) = @_;
    write_result_line("S", $recip);
+    @Recipients = grep { $_ ne $recip } @Recipients;
    return 1;
}

I have a filter that removes recipients from the message when they don't
want spam and others do, but when graphdefang is called it shows mail_in
for every user because it iterates though @Recipients.  This causes my
stats to be all jumbled up as well as makes the logs misleading.

Thanks,
schu



More information about the MIMEDefang mailing list