procmail
[Top] [All Lists]

Re: question/query from procmail newbie

2001-09-04 15:52:10
Andrew Edelstein <andrew(_at_)pure-chaos(_dot_)com> writes:
:0i:
* ^Subject:.*(expression1|expression2)
| formail -rzxTo: >> $HOME/storage

Note you don't need the .* at the end of the expressions, or the match clause.
Procmail assumes it.

Also, there's no need to use the 'i' flag on the recipe when the 'h' flag
will solve the problem.  Rather than tell procmail to ignore write errors,
just have it feed the correct and minimal amount into the formail process.


Hmm, you may also want to use 'formail -rt' instead of 'formail -r'.
If one of the messages came from a mailing list, should it record the
mailing list bounce address (formail -r) or the address of the original
author (formail -rt)?  If the answer is "I'll never see one from a
mailing list" then you should go ahead and add the condition
        * ! ^FROM_MAILER
or
        * ! ^FROM_DAEMON

(What about when someone resends or 'bounces' a messages?  The list of
possibilities goes on...)


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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