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.
>
>
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
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]')
>>
>
>
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
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
--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
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
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
8 matches
Mail list logo