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

Re: Procmail Nesting



-----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
- -- 
No one really listens to anyone else, and if you try it for a while 
you'll see why.
                                                   -- Mignon McLaughlin
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFHDVZiBkIOoMqOI14RAlgTAJ97rWNdxWFgsKCZbr+w582zrvvGXgCeIts6
HlaQo2EnOFivws75E9AP7mY=
=Tnkd
-----END PGP SIGNATURE-----