procmail
[Top] [All Lists]

Re: Procmail, sendmail and external forwarding from /etc/aliases

2005-06-29 09:17:49
On 6/28/05, Professional Software Engineering
<PSE-L(_at_)mail(_dot_)professional(_dot_)org> wrote:
At 09:50 2005-06-28 -0700, Bart Schaefer wrote:
[snip]

(One recipe block for each possible value of ALIAS.)


Er, might be easier to maintain by performing a lookup using grep:

It can be done pure-procmail, too, but I was in a hurry yesterday.

#-------
ALIASTAB="
aliasname : aliasaddress(_at_)otherdomain(_dot_)com
othername : otheraddress(_at_)thirddomain(_dot_)com
....
"

ALIAS = $1

:0
* $ ALIASTAB ?? ^$ALIAS : \/.+
! $MATCH
#-------

Initializing ALIASTAB from a file with "`cat ...`" is also possible,
but then you might as well use grep in the first place.


____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>