procmail
[Top] [All Lists]

Re: A unique way of dividing up incoming messages

1998-07-06 13:50:31



Jauder Ho  wrote:


      use IMAP the u-w imapd has provision for shared folders. 

Other possibility:  Use an include file in your recipe.
Then call a sed routine to do the following to it:

# sedbatch file
sed 's/folder1/folder2/g' < rfile > x.tmp ; mv x.tmp rfile
sed 's/folder2/folder3/g' < rfile > x.tmp ; mv x.tmp rfile
sed 's/folder3/folder4/g' < rfile > x.tmp ; mv x.tmp rfile
...
sed 's/folder9/folder1/g' < rfile > x.tmp ; mv x.tmp rfile
# end of sedbatch file

This way, the next time a mail would come in, the
recipe would call for the next folder in the round
robin order.

(The rfile is the recipe file you include).
For example:

# rfile do  include rfile
:0: recipelock
folder1 ; sedbatch

Jacques G.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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