
25 May
2004
25 May
'04
2:01 p.m.
The relevant part is:
:0 :: * ^To:.*@.*@.*|^(CC|Cc):.*@.* * !^Subject:.*\[Tkt: 1[0-9].*\] | (formail -t -r -k -p "> " -I "Reply-To: <reply address>"; cat /path/to/rejection/message) | sendmail -t
You will obviously have to customise the subject match to correspond to your ticket number format. Replace <reply address> with the address you want replies to go to should customers reply to the rejection message - unless you want them arriving back in the ticket system, in which case remove the -I option.
it works perfectly, thanks ! now that we have the basic procmail building blocks, we'll try to extend this ruleset to do cool things like blacklisting stupid customers, forbid HTML content, etc. -- Sébastien Guilbaud