As anexample (based on some discussions with Gord) I now use this:
if ( $SIZE < 512000 )
{
i=1
foreach /Received: .*/
{
if ( $i == 1 && ( ! ($MATCH =~ /Received: .*\(AUTH:
[^)]*\) *by /)))
{
xfilter "/usr/bin/spamc -U
/var/run/spamassassin.sock -u $UI_ID"
}
i=$i+1
}
}
hth
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> Zusman
> Sent: Sunday, February 08, 2004 5:10 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Re: Definitive way to determine whether there's
> been authorization?
>
>
> "Mitch \(WebCob\)" <[EMAIL PROTECTED]> writes:
>
> > If the last received header (the one added by YOUR server says
> AUTH, you can
> > trust it - otherwise it can be spoofed. I just read the headers.
> >
> > You can use a for loop and a counter to ensure you only check the first
> > received header.
> >
> > m/
>
> Got it. Thanks. I'll post my corrected filter script in a little while.
>
>
> --
> Lloyd Zusman
> [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users