Zhiliang Hu <hu(_at_)map(_dot_)marc(_dot_)usda(_dot_)gov> writes:
Forgive me if this is a too simple question :-) --
I have been using procmail to sort out incoming mails into over 15
files, like:
:0
* ^(To|Cc)(_dot_)*sheep-l(_at_)LISTSERV(_dot_)UU(_dot_)SE
Sheep-l
...
Occasionaly, I experienced loss of a complete archive file.
I wonder if a proper lock file line for each recipe, or following
recipe would be better to prevent this?
:0
* ^(To|Cc)(_dot_)*sheep-l(_at_)LISTSERV(_dot_)UU(_dot_)SE
| cat >> Sheep-l
Using cat won't help: what's to stop two cats from running at once?
(All the cats I know run costantly anyway, except when they're both
demanding to be pet...) Add the local lockfile flag.
:0:
* ^(To|Cc)(_dot_)*sheep-l(_at_)LISTSERV(_dot_)UU(_dot_)SE
Sheep-l
BTW: I've usually found it easier to match things like mailing lists on
the envelope sender, as saved in the "Return-Path:" header. That even
handles someone Bcc'ing the list. Be sure to examine old messages to see
what to match on if you try this.
Philip Guenther