<<< Date Index >>>     <<< Thread Index >>>

Re: Procmail Nesting



On 2007.10.10 17:46:58 +0000, Kyle Wheeler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wednesday, October 10 at 03:29 PM, quoth Rem P Roberti:
> > Is it possible to use curly braces to nest conditions?  For example, 
> > there are two addresses that can be used for the FreeBSD mailing 
> > list to which I subscribe, and I would like to incorporate them both 
> > into the same recipe. 
> 
> This is really a procmail question... which you should probably be 
> asking on a procmail-users list.
> 
> But the short answer is that yes, you can nest conditions, like so:
> 
>      :0 H
>      * basecondition
>      {
>          :0 H
>          * subcondition1
>          deliversomewhere
> 
>          :0 H
>          * subcondition2
>          deliverelsewhere
>      }
> 
> But the situation you describe sounds more like something you'd use 
> stronger conditions for, like so:
> 
>      :0 H
>      * From:.*(address1|address2)
>      FreeBSDmailbox
> 
> ~Kyle

Thanks Kyle...and, yes, it's about time that I joined the procmail list.

Rem