procmail
[Top] [All Lists]

Re: Using variables in recipes

2007-06-07 17:36:44
On 7-Jun-2007, at 17:56, Stephen Allen wrote:
Precursor... according to the procmail help I've read, there can  
only be
one action per recipe.  Do I assume that this constitutes one action?

:0
* Some condition
{
    Some action
    Another action
}

Yes, in fact:

:0
* List of
* conditions
* here
{
   :0
   * condition 1
   do.something

   :0
   * condition 2
   * condition 3
   do something else

   :0
   * condition 4
   {
     :0
     * condition 4.1
     stuff
   }
}

as many levels as you want as long as each block is ONE action.


this is also a way to log something based on conditions:

:0
* ^From:(_dot_)*2125551212(_at_)movoicemail(_dot_)tld
{ LOG="A Voicemail!" }

(note that the {} must have space around them)

-- 
Naked blonde walks into a bar with a poodle under one arm, and a two- 
foot salami under the other. The bartender says, I guess you won't be  
needing a drink. Naked lady says…

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail