Jeffrey Schoolcraft asked,
| I want to know if this is possible to do with procmail. I have one email
| account, support, and I would like to be able to send incoming messages to
| various accounts. I would really like to split them 50/50 so the first
| would go to support1 and second to support2. Of course, i'd like to scale,
| but is this possible?
We recently had a similar question from someone who wanted to distribute
mail for support to several different staffers in rotation. Easiest way
is to keep an extra file for it:
:0fwh # put incoming postmark line where support person can see it
| formail -R 'From ' Old-Postmark:
LOCKFILE=supportrotation$LOCKEXT
INCLUDERC=.nextsupport # contents of .nextsupport are NEXT=support1
# or NEXT=support2
:0c
! $NEXT
:0i
* NEXT ?? support1
| echo "NEXT=support2" > .nextsupport
:0Ei
| echo "NEXT=support1" > .nextsupport
LOCKFILE # in case of fall-through
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail