[Mimedefang] Need Tip on Filter

Peter A. Cole peteracole at bigpond.com
Mon Mar 22 06:26:49 EST 2004


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

> Your regex pattern isn't terminated.  You need a "/" at the end of it.
> 
Thanks Michael, see I knew it was a simple regex type thing! It's really time I read through the Debian Reference Manual which explains regular expressions, at least a basic intro anyway.

Once I've done that, hopefully I shouldn't need to bug all you nice people on this list anymore...

>   open(HEADERS, '< ./HEADERS');
>   while (<HEADERS>) {
>     if (/^X-Habeas-SWE/i 
>         || (/^X-Telstra-AS-Scanner: .*?, (.*?)% /i 
>             && $1 >= 90)) {

And thanks again, at least I now know what the "or" expression is. I'll put this in tonight and see how it goes.

Oh, and with the original filter component you gave me, well, the first email I got containing the headers was only 83%... so I guess I'll reduce it from 90 to 80...

Thanks heaps!

Pete



More information about the MIMEDefang mailing list