[Mimedefang] excluding sender/subject from spam check

Bryan Stansell bryan at stansell.org
Thu Jan 8 16:45:18 EST 2004


On Thu, Jan 08, 2004 at 04:27:27PM -0500, Douglas, Jason wrote:
> if ( ( $Sender ne '<somebody at domain.com>' && $Subject ne 'This is the
> subject line' ) && ( $Sender ne '<somebodyelse at anotherdomain.com>' &&
> $Subject ne 'Somebodyelses Subject Line' ) ) { # do spamassassin if (

i belive it should be (a couple && to ||)...

if ( ( $Sender ne '<somebody at domain.com>' ||
       $Subject ne 'This is the subject line' ) &&
     ( $Sender ne '<somebodyelse at anotherdomain.com>' ||
       $Subject ne 'Somebodyelses Subject Line' ) ) {
   # do spamassassin filtering
}

or...(more logical in my head)...

if ( !( $Sender eq '<somebody at domain.com>' &&
       $Subject eq 'This is the subject line' ) &&
     !( $Sender eq '<somebodyelse at anotherdomain.com>' &&
       $Subject eq 'Somebodyelses Subject Line' ) ) {
   # do spamassassin filtering
}

Bryan



More information about the MIMEDefang mailing list