procmail
[Top] [All Lists]

Re: Extracting Filename

2000-01-05 10:37:28
SoloCDM <deedsmis(_at_)ris(_dot_)net> writes:

1) Is the entire .procmailrc file processed, even if a recipe meets the
requested process?  2) What is needed to echo a message into the log file
(maybe: | echo $MESSAGE).  3) Are the braces ("{}") needed to ensure both
the recipe and the message echoed are processed?

P.'S. Detailed Documentation(s) and Sample(s) are more than welcome.
      When you reply to this message, please include
      the mailing list and my address.

The following three paragraphs are taken directly from the procmailrc(5)
manpage. Taken together, they answer your questions. RTFMP.

          delivering recipes.  If a  delivering  recipe  is  found  to
          match,   procmail   considers  the  mail  (you  guessed  it)
          delivered and will cease processing the rcfile after  having
          successfully  executed  the action line of the recipe.  If a

          LOG         Anything  assigned  to  this  variable  will  be
                      appended to $LOGFILE.

          {    Followed  by  at  least  one space, tab or newline will
               mark the start of a nesting block.  Everything up  till
               the  next  closing  brace will depend on the conditions
               specified  for  this  recipe.   Unlimited  nesting   is
               permitted.   The closing brace exists merely to delimit
               the block, it will not cause procmail to  terminate  in
               any  way.   If the end of a block is reached processing
               will continue as usual after the block.  On  a  nesting
               block, the flags `H' and `B' only affect the conditions
               leading up to the block, the flags `h' and `b' have  no
               effect whatsoever.


-- 
Rik Kabel          Old enough to be an adult              
rik(_at_)netcom(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>