I have put this recipe together from a few souces.
This is a global /etc/procmail. I know it is running because I can get
it working with just the first condition and then hardcoding the fax
extension number in the faxmail program.
Basically I want to take a header like:
To: 2222(_at_)fax(_dot_)debug(_dot_)domain(_dot_)com
And get the 2222 to feed into the faxmail program:
DROPPRIVS=yes
:0fw
| /usr/bin/spamassassin
:0
* ^X-Spam-Status: Yes
/var/mail/spam
:0hb:
* ^(To|Cc|Bcc).\/(*(_at_)fax(_dot_)debug(_dot_)domain(_dot_)com)
* MATCH ?? ()\/[^(_at_)]+
| /usr/bin/faxmail -d "fax(_at_)$MATCH"
Thank you
____________________________________________________________
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