On  0, Subba Rao <[EMAIL PROTECTED]> wrote:
>  
> if(^/(To|Cc): .*(jack||bob).*/ ){
>     to "!jack bob"
> }
> 
> The above will foward any mail received by either jack OR bob to both jack AND bob.
> I am assuming that's is the goal you are trying to acheive i.e. to send the mail to
> both of them, even if it is addressed to only one of them. (I don't know why you
> would want to do that. ;-) ).
> 
> The operator used for To and Cc, is a bitwise operator, where as for bob and jack, we
> are using logical operators.
> 

The OR operator ( || ) is for 2 expressions. The correct syntax should be

if(^/(To|Cc): .*(jack|bob).*/ ){
    to "!jack bob"
}

Subba Rao
[EMAIL PROTECTED]
http://pws.prserv.net/truemax/

Reply via email to