Re: help with a recipe

Klaus Johannes Rusch <[email protected]> Fri, 20 Feb 2015 23:19:59 +0100
Newsgroups gmane.mail.procmail
Message-ID <[email protected]>
On 20.02.2015 15:46, Zhiliang Hu wrote:
> 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

Looks like the ^To match should be on a separate line, not part of the 
 From match.

If that doesn't work I suggest you enable logging and check each match 
separately to see which one fails.

-- 
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/