How can I use sieveshell in batch mode

Rob Tanner rtanner at linfield.edu
Wed Oct 6 18:25:27 EDT 2004


I am moving a couple thousand users to cyrus-imap and I need to move 324
.forward files into sieve.  I wrote a quick and dirty perl program to convert
each forward file into a sieve script that can be understood by smartsieve,
so I'm ready to go as far as the content of the 324 sieve scripts are
concerned.

My problem is, how do I use sieveshell in batch mode.  While I can certainly
upload scripts one at a time, there appears to be no way to feed sieveshell
the authentication password on the command line and thus no way to repeatedly
invoke sieveshell from a script (unless I'm missing something).  I tried
piping the password in via STDIN.  It appears to work but also generates
"stty: standard input: Invalid argument" errors, so I'm not so sure that it's
a good idea.  

My other thought was to write my own, using the Cyrus::SIEVE::managesieve
package, but there's no helpful documentation that I could find.

Has anyone resolved this problem?

Thanks,
Rob

-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list