sievectl

Path: sievectl
Last Update: Tue Jan 13 19:29:52 -0200 2009

Overview

Sievectl is a utility that allows for management of Sieve scripts from the command line. It supports multiple accounts, configured in the .sievectlrc file located in the user‘s home directory.

Configuration file example

 accountA:
   host:     sieve.accounta.tld
   port:     2000
   user:     johndoe
   euser:    johndoe
   password: secret
   auth:     PLAIN

 accountB:
   host:     mail.accountb.tld
   user:     john
   password: secret
   auth:     PLAIN
   tls:      false

The port and euser parameters can be ommited, and will respectively default to 2000 and the value of the user parameter. If the auth parameter is ommited, it will default to ANONYMOUS. If the tls parameter is ommited, a TLS connection will be used if the server supports it. Otherwise, a plain text connection will be used.

Usage and examples

 $ sievectl help
 Usage: sievectl <account> <action> [script name]
 Action is one of:
   capabilities, list, show, activate, deactivate, add, addactive, delete

 Short forms for some actions are also accepted:
   caps (capabilities), act (activate), deact (deactivate),
   addact (addactive), del (delete)

   Examples:
     List server capabilities:
       sievectl myaccount caps

     List available scripts:
       sievectl myaccount list

     Show contents of a script:
       sievectl myaccount show scriptname

     Add a script:
       sievectl myaccount add scriptname script.txt
       or
       sievectl myaccount add scriptname < script.txt
       or
       cat script.txt | sievectl myaccount add scriptname

     Delete a script:
       sievectl myaccount del scriptname

Required files

rubygems   managesieve   termios   yaml  

[Validate]