* Zhiliang Hu wrote on Fri, 20 Feb 2015, at 08:46 (-0600):
I have a recipe to sack all maildaemon mails to a file:
:0 H
*
^FROM_DAEMON|^FROM_MAILER|^From:.*(MAILER-DAEMON|spam_master|postmaster|ait-admin|Mail
Delivery|bounce@)|^To:.*-request
* ^Subject:.*(Error Condition|DELIVERY FAILURE|Delivery Status
Notification|Delivery delayed|Returned mail|Undeliverable|failure
notice|Warning: could not send message)
Mailerror
(Note /* ^FROM_DAEMON/ and /* ^Subject/ lines may be wrapped in this
mail; the 4th line is "Mailerror".)
^FROM_MAILER is a subset of ^FROM_DAEMON as mentioned on
procmailrc(5). So you only need to use the latter.
However it misses mail bounces like:
From: postmaster(_at_)xxx(_dot_)xxxxxxx(_dot_)xx
To: xxxxxxx-request(_at_)xxxxxxxxxx(_dot_)xxx
Subject: Undeliverable: xxxxxxxxxx
I could not find but does my construct have a problem?
Hm, yes. It seems to be far too complicated. Perhaps you can
simplify the recipe to, e.g.,
:0:
* 1^0 ^FROM_DAEMON
* 1^0 some other condition 1
* 1^0 some other condition 2
* ....
Mailerror
and rebuild it step by step.
Regards,
Mathias
--
CAcert Assurer - See http://www.CAcert.org for details or ask me
GnuPG/OpenPGP: B100 5DC4 9686 BE64 87E9 0E22 44C3 983F A762 9DE8
pgpLNGaNADFQ9.pgp
Description: PGP signature
____________________________________________________________
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