In your message dated Fri, 27 Oct 2006 11:18:27 +0200, Franck said that ...
Hi,
I would like to make a recipe which works like this :
Each time A(_at_)domain(_dot_)com receive a mail from
Z(_at_)somewhere(_dot_)com, B(_at_)domain(_dot_)com
get a copy of this mail.
Each time B(_at_)domain(_dot_)com receive a mail from
Z(_at_)somewhere(_dot_)com, A(_at_)domain(_dot_)com
get a copy of this mail.
i made this :
:0 c
* ^From(_dot_)*Z(_at_)somewhere(_dot_)com
* ^To(_dot_)*B(_at_)domain(_dot_)com
! A(_at_)domain(_dot_)com
:0 c
* ^From(_dot_)*Z(_at_)somewhere(_dot_)com
* ^To(_dot_)*A(_at_)domain(_dot_)com
! B(_at_)domain(_dot_)com
Looks like you want any mail "From" z sent to a & b if originally To a or b
:0
* ^From:(_dot_)*z(_at_)somewhere(_dot_)com
* ^To:.*(a|b)@domain.com
{
:0 c
| $SENDMAIL -oi a(_at_)domain(_dot_)com \
b(_at_)domain(_dot_)com
}
The above should not loop
My problem is, that each time a person get a copy, he receives a mailer
daemon message because there is a loop (for example if B gets the copy,
he will gets a loop for a mail from B to B).
can someone help with it plz ?
Thx
Franck
____________________________________________________________
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
--
Best Regards,
Tim Rice
---------------
Phuket Thailand
____________________________________________________________
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