Will something like this work allright?
(I would be better off if I defined all aliases in sendmail
but I would still need to handle the DTav-header, see below)
#---------------------------------
AllTo=""
Us="domain[.]tld"
:0
# if DTav-header exists (Bcc-holder)
* ^Delivered-To: alias-vhost-domain-tld-\/[^(_at_)]+
{
AllTo="$AllTo,$MATCH"
}
:0
# if to Us
*$ ^TO()\/[a-z0-9_(_dot_)-]+(_at_)$Us
{
:0
*$ ^TO(harry|H\.Jones)@$Us
{ AllTo="$AllTo,harry" }
:0
*$ ^TO(dick|D\.Jones)@$Us
{ AllTo="$AllTo,dick" }
:0
*$ ^TO(tom|T\.Jones)@$Us
{ AllTo="$AllTo,tom" }
}
# After everyone has been checked for Cc's etc,
# remove message from mbox and archive once
# in ~/usermail or ~/postmaster
:0c
* AllTo ?? ^^,\/.*
! $MATCH
:0A:
usermail
:0c:
postmaster
# Anything that's left:
:0
! mailboy
#---------------------------------
I especially wonder if the line
! $MATCH
will work as expected
(send a copy to the collection of recipients).
Thanks, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail