RE: [Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread Matthew.van.Eerde
John Nemeth wrote: > The problem is that "and" binds tighter then "or" so Perl sees > the expression as A or (B and C). If A is true then the whole > expression is true. > > On Jan 9, 4:10am, <[EMAIL PROTECTED]> wrote: > } > } but the logic looks like it shold have worked anyway. > >

RE: [Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread John Nemeth
On Jan 9, 4:10am, <[EMAIL PROTECTED]> wrote: } Jeff Grossman wrote: } > if ($recip2 eq '[EMAIL PROTECTED]' or } > $recip2 eq '[EMAIL PROTECTED]' and } > $sender2 ne '[EMAIL PROTECTED]') { } > ) { } } Parentheses are a good idea here... Correction: parentheses are a MUST

Re: [Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread Jeff Grossman
On 8/19/05 9:39 AM, "Joseph Brennan" <[EMAIL PROTECTED]> wrote: > > > --On Friday, August 19, 2005 9:05 -0700 Jeff Grossman <[EMAIL PROTECTED]> > wrote: > >> if ($recip2 eq '[EMAIL PROTECTED]' or >> $recip2 eq '[EMAIL PROTECTED]' and >> $sender2 ne '[EMAIL PROTECTED]') >> > >

Re: [Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread Jeff Grossman
On 8/19/05 9:36 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Matthew.van.Eerde wrote: >> action_notify_administrator("TESTING: Recipient: >> $recip2\nSender: $sender >> \nIP: $ip"); > > Just noticed you're using $recip2 and $sender... should that be $sender2? That is just

RE: [Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread Matthew.van.Eerde
Matthew.van.Eerde wrote: > action_notify_administrator("TESTING: Recipient: > $recip2\nSender: $sender > \nIP: $ip"); Just noticed you're using $recip2 and $sender... should that be $sender2? -- Matthew.van.Eerde (at) hbinc.com 805.964.4554 x902 Hispanic Business In

Re: [Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread Joseph Brennan
--On Friday, August 19, 2005 9:05 -0700 Jeff Grossman <[EMAIL PROTECTED]> wrote: if ($recip2 eq '[EMAIL PROTECTED]' or $recip2 eq '[EMAIL PROTECTED]' and $sender2 ne '[EMAIL PROTECTED]') Add another pair of parentheses there to clarify the logic. Joseph Brennan Columbia

RE: [Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread Matthew.van.Eerde
Jeff Grossman wrote: > if ($recip2 eq '[EMAIL PROTECTED]' or > $recip2 eq '[EMAIL PROTECTED]' and > $sender2 ne '[EMAIL PROTECTED]') { > ) { Parentheses are a good idea here... if ( ( $recip2 eq '[EMAIL PROTECTED]' or $recip2 eq '[EMAIL PROTE

[Mimedefang] Filter Recipient Coding Help

2005-08-19 Thread Jeff Grossman
I need some help with some coding in filter recipient. I have the following code in my filter recipient section: my($recip, $sender, $ip, $host, $first, $helo, $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_; $recip2 = $recip; $recip2 =~ tr/<>//d; $recip2 = lc($recip2); if ($recip2 eq '[EMAI