I have mail for several domains going to a single account (the only one
where procmail is available.) I'd like to forward specific mail. I
found the following examples at
http://pm-doc.sourceforge.net/pm-tips.html and have been trying to
adapt it without success.
# By Jim Hribnak <EM>hribnak(_at_)nucleus(_dot_)com</EM>
# info(_at_)domain1(_dot_)com goes to joe(_at_)domain1(_dot_)com
# info(_at_)domain2(_dot_)com foes to fred(_at_)domain2(_dot_)com
:0
* ^TO_()info(_at_)domain1(_dot_)com\>
{
FORWARDTO = "$FORWARDTO joe(_at_)domain1(_dot_)com"
}
:0
* ^TO_()info(_at_)domain2(_dot_)com\>
{
FORWARDTO = "$FORWARDTO fred(_at_)domain2(_dot_)com"
}
:0 fhw
* FORWARDTO ?? @
* ! ^$MYXLOOP
| $FORMAIL -A "$MYXLOOP"
:0 a
########
The problem is that if the mail is addressed to another domain or user
in addition to one of the listed addresses, the other address is left
out. What I need to do is to if there are any addresses other than the
ones listed, the mail should fall thru for normal processing, in
addition to being forwarded appropriately. For example, if the mail is
addressed to info(_at_)domain1(_dot_)com and dude(_at_)domain3(_dot_)com, then
joe(_at_)domain1(_dot_)com should get forwarded to, plus dude(_at_)domain3(_dot_)com's copy
should follow the rest of my procmail filtering. I'm thinking there's
another condition and a c flag involved, but I can't hit on the correct
way.
Thanks for any help.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail