Re: help with a recipe
Mathias Bauer <[email protected]> Fri, 20 Feb 2015 18:42:05 +0100
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
* 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: [email protected] > To: [email protected] > 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 ____________________________________________________________ procmail mailing list Procmail homepage: http://www.procmail.org/ [email protected] http://mailman.rwth-aachen.de/mailman/listinfo/procmail
signature.asc
(application/pgp-signature, 760 B)
-----BEGIN PGP SIGNATURE----- iQH8BAEBCgBmBQJU53HsXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxRUUyMDcwMkIzQjg0NDU4Q0Q2OERBQkEx RTMwQTRFOTAwRjE4NDI4AAoJEB4wpOkA8YQoFM4L/AlYV7tMSttvae3f/C8fKW0P guSxzXNgGwX2vHhFnXfXN2C9ST5zA0WloTiRa9fQ0tNQwnPOa89F+MvdWMxgVe31 cb0vv0biBbXqDek2ISMF136ilkFLp654WiB8NMf5fsFvYsfHVjiLsRmRZaJhRyu+ i8SRiUHR73JJ0nCdgkR71XbcByXwgg5U00BuFiXOIITiPoGIIgFpr7WBh7ej3c+K w0HfYJCDX7xejK/SnPNNxh8mBn1xEtPAPLZIJ6ik5FH/B2y2OsW6kWRLtKf2Hu0z swmh5P3NCoyWTJVyG3T2KgDVwud35s4R+l+WH7p5rEbeb8tsJd6vPVy/jGYRA7rx So1+ihnOoB/6O4bFh/fw86KkpnlMAT50pK4IaR+Nz3Z9DVwlsxKWc70YceD3zW7D 7lDEdCfFEmhwZ5Vmrkk+4FhZ/8wG5VVXbQc785Ue1DW71b35Rs78rm6n8LoTbw15 WmpawbPl+2J+xhs0Pwwwwmo6Jay0/OzJQLF8l9Sy/Q== =632c -----END PGP SIGNATURE-----