Please Copy the list in your replies :) On Thu, 12 Nov 2009 17:01:09 +0100, nunatarsuaq <nunatars...@gmail.com> wrote: > This is a good tutorial but when a newly created filter file should be > written? > > When I invoke > > # sieveshell -u cyrus -a cyrus localhost >
First, you should log in with your personal account and NOT the cyrus user. Sieve filters are attached to your IMAP account, each user has its own. > and type > >> put sieve_filter > > (sieve_filter is a file with contents: > if header :contains "X-Spam-Flag" "YES" { > fileinto "Junk"; > stop; > } > > I get an error: > > upload failed: put script: script errors: > line 2: fileinto not required The syntax of the "Junk" folder is probably not good. If you use default configuration of cyrus-imap, I suppose it should be more something like "user.<yourusername>.Junk". For me, it is "user.julien.Spam" and the complete filter is thus: --- if header :contains "X-Spam-Flag" "YES" { fileinto "user.julien.Spam"; stop; } --- Julien