procmail
[Top] [All Lists]

write to one file from numerous recipes

2004-08-02 05:08:50
I wondered what kind of mess it might make if I add a copy being sent
to a single mail file from all my spam rules.  Probably 25 or so.

Currently each spam rule writes to a separate mbox style file.
I'd like to add a copy to file foo.in from each rule.

What might such a rule look like.  I don't really understand the role
of (:0:) lock operator.  If I need that in this case or what.

sample (existing) rules:
  :0
  * > 20000
  too_big_spam1.in

  :0 B
  * B ?? Lipitor..* cholesterol
  health_scam_spam1.in

I'm thinking something like this is all I need (untested):

  :0
  * > 20000
 { :0: c
    foo.in
   :0  
  too_big_spam1.in
 }

For each rule ... that is all copies go to foo.in and each copy rule has
the lock operator set.


____________________________________________________________
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