procmail
[Top] [All Lists]

Re: simple procmail receipts

1997-08-21 02:40:36
On Thu, 21 Aug 1997 14:52:18 +1000 (EST),
"MC.Wong" <mwon(_at_)fujitsu(_dot_)com(_dot_)au> wrote:
For all incoming mails with the word "label" in the Subject line, forward a
copy to another e-mail account and append the body (b flag) of the message to
a file.

Your recipes are basically fine, the only thing you need to realize is
that Procmail will stop processing as soon as it considers your
message "delivered". To continue processing even though a delivering
recipe succeeds, add a :c flag to that recipe. 

(In so many words, to save three copies of a message, you need three
recipes, the two first of which should have a :c flag.)

:0 b:
| cat >> ${LABELSTXT}

This can be more succinctly formulated as

  :0b:
  $LABELSTXT

Hope this helps,

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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