# rrobinlist is a file/list of e-mail addresses, comma delimited like:
#
user1(_at_)domain1(_dot_)com,user2(_at_)domain2(_dot_)com,user3(_at_)domain3(_dot_)com,user4(_at_)domain4(_dot_)com
FORWARDTO=`cat rrobinlist | sed 's/^\([^,]*\),.*/\1/'`
:0c
! $FORWARDTO
:0:ic
| cat rrobinlist | sed 's/^\([^,]*\),\(.*\)/\2,\1/' > rrobinlist
:0:
/dev/null
I haven't used this at all, so it may be useless in practice. ;) Um, I'm
not sure if you're going to need that last copy being sent to /dev/null or
not. That middle recipe may function well enough that you won't end up
with a mail file being saved.
Lee Howard
At 06:41 PM 6/26/00 -0600, mark thiessen wrote:
Has anyone ever heard of a round-robin for email. I have been told that
this should be possible to do with Procmail, but no one that I have talked
to has known how. In case you are not sure what I mean, I would like to
set up a list of 10 names, every email coming in, gets forwarded to one of
these names. It would choose the first name for the first email, second
for second, etc. When it got to the end of the list, it would go to the
first name on the list, and continue on. I would very much appreciate help
on this, if possible. Thank You
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail