At 15:21 2007-11-30 -0500, Robert Moskowitz wrote:
:0hb:
As Bart pointed out, no lockfile should be necessary for a delivery to a
pipe. If, OTOH, you need to ensure the program is invoked only one
instance at a time, you're probably better off wrapping it in a script that
employs locking.
Also, the combination of hb would be the DEFAULT (see 'man procmailrc'), so
no need to specify it.
* ^(To|Cc|Bcc).\/(*(_at_)fax(_dot_)debug(_dot_)domain(_dot_)com)
Again, bart has pointed out some issues with this, missing dot and the fact
that Bcc will not generally exist. I'd also point out that you should
probably include the header-terminating colon, and exclude any leading
spaces, etc.
Since the fax "extension" identifier you're using resides in its own
subdomain, why not set your MTA to deliver all messages for such extensions
through a script directly (rather than invoking the LDA, and involving the
global procmailrc). Check out the value of $1 within the procmailrc
sometime...
Alternatley, you might want to check my sandbox (see sig) for some address
parsing code.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
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