Hey everyone,
Again, I have a virtual host setup on my server. All emails sent to that
host are sent to my account, which invokes procmail. Procmail then forwards
to the appropriate people, based on the address given. This has been
working correctly, however I had a thought on the bus last night: If I have
two addresses, say user1(_at_)manuel(_dot_)ca and user2(_at_)manuel(_dot_)ca,
and somebody sends
and email with BOTH user1(_at_)manuel(_dot_)ca and user2(_at_)manuel(_dot_)ca
in the To: header,
won't the following recipe send both copies to user1?
:0
* ^TO_user1(_at_)manuel(_dot_)ca
{
:0
! email1(_at_)host(_dot_)ca
}
:0
* ^TO_user2(_at_)manuel(_dot_)ca
{
:0
! email2(_at_)host(_dot_)ca
}
...as the message would be caught by the first recipe for both copies of the
message.
I don't think I can fix this by carbon-copying, as both addresses would
then be forwarded two copies of the message. How do I get procmail to check
"check each address in the destination headers, and forward each address
with a corresponding recipe"?
Is there a way to check the destination of the specific message?
Thank in advance,
-Matthew
--
| _ ___ Matthew Manuel
Matthew(_at_)Manuel(_dot_)ca
_ (=) |:|____--| Halifax, Nova Scotia www.Manuel.ca
|.| | |:|==| |-| via Mississauga, Ontario ICQ# 13963820
|.| | ____|:|==| |-|
|.| | ////\\:|==| |-| "Forever never seems that long until your grown"
|.| ^| ||==| |-| - Andre 3000 of Outkast, "Ms. Jackson"
<EOT>
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail