[Mimedefang] Need Tip on Filter

Peter A. Cole peteracole at bigpond.com
Sun Mar 21 01:31:56 EST 2004


On Sun, 21 Mar 2004 00:00:17 -0600
Michael Sims <michaels at crye-leike.com> wrote:

> open(HEADERS, '< ./HEADERS');
>   while (<HEADERS>) {
>     if (/^X-Telstra-AS-Scanner: .*?, (.*?)% /i
>         && $1 >= 90) {
> 
>       delete_recipient($_) foreach (@Recipients);
>       add_recipient('spamdrop at example.com');
>       last;
>     }
>   }
>   close(HEADERS);

Thanks Michael,

I've added that in, substituting my local spamdrop account, and it appears correct according to mimedefang.pl -test.

My problem is with regular expressions - I really need to sit down one day and go through them to try to understand them better.

I knew how to do the recipient actions, but the if... section is what gets me every time.

Thanks again!

Pete



More information about the MIMEDefang mailing list