Google Kreme schreef:
:0
*TOuser1
{ SENDLIST = "user1," }
:0
*TOuser2
{ SENDLIST = "$SENDLIST user2,"
:0
*TOuser3
{ SENDLIST = "$SENDLIST user3"
:0
# if SENDLIST is not empty
* ! $SENDLIST ^^^^
! $SENDLIST
SEP = ',' # often just comma is OK
SENDLIST # unset
:0
* ^TO()user1
{ SENDLIST = "$SENDLIST${SEP}user1" }
:0
* ^TO()user2
{ SENDLIST = "$SENDLIST${SEP}user2" }
:0
* ^TO()user3
{ SENDLIST = "$SENDLIST${SEP}user3" }
:0
*$ SENDLIST ?? ^^${SEP}\/.+
! $MATCH
(untested)
--
Groet, Ruud
____________________________________________________________
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