procmail
[Top] [All Lists]

need help with a forwarding script

2000-03-10 10:42:32
I'm a procmail newbie but I have a problem which I believe procmail can
solve easily.  My employer has a single customer service email address which
is receiving more emails than a single person can handle.  So, they want to
distribute each incoming email to one of several recipients in round-robin
fashion (1st email goes to recipient #1, next to #2, next to #3, next to
#1... and so forth).

I imagine the script can keep track of who got the last email by reading and
writing a counter to a file.  The actual recipients can be kept in a
separate file or hard-coded into the script.  The counter is read,
incremented, saved, the next email recipient is determined therefrom, and
finally the email gets forwarded (without saving a copy in the original
recipient account.)

It seems straightforward but I'm just having a hard time putting this into
"procmail-ese."  If anyone has any tips on how to get started writing such a
script from scratch (or better yet has something like this already working)
I'd really appreciate the help.

Thanks!

-Russ Salerno
 russ(_at_)fortunoff(_dot_)com



<Prev in Thread] Current Thread [Next in Thread>