There seems to be little to no information about Sieve under Cyrus online, so I will present my astonishing finding from last night here. Achieved by tirelessly trying every combination, I'll post the solution to help others :-)
In case you were wondering about the format of a mailbox name in a Sieve fileinto delivery rule with Cyrus: You need to use the form
INBOX.somefolder
At least for a userspecific Sieve script under Cyrus 2.4.17 from Debian 8 Jessie using
unixhierarchysep: no
A small userspecific Sieve script to sort
bogofiltered mail into folders thus looks like this (last line untested because it's the default folder anyway):
- require "fileinto";
- if header :contains "X-Bogosity" "Unsure, " { fileinto "INBOX.Unsure"; stop; }
- if header :contains "X-Bogosity" "Spam, " { fileinto "INBOX.Spam"; stop; }
- # if header :contains "X-Bogosity" "Ham, " { fileinto "INBOX"; stop; }
Note to my future self:
If you're coming here in three years from now because you have to change that Sieve script again, don't try to remember your administrative password, just set a new one via
saslpasswd2 cyrus
. And then update that Sieve script via sieveshell like this (use
get
if you lost the original):
- $ sieveshell --user=$USER --auth=cyrus localhost
- > put local_sievescript_textfile
- > activate local_sievescript_textfile
- > quit