sievectl

Path: sievectl
Last Update: Wed Aug 30 14:08:50 BRT 2006

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

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.

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]