cam at ellisonpsychology.ca
2008-Apr-07 03:59 UTC
[Dovecot] A little assistance with Sieve
With all the mess that my email has become, it makes sense for me to try to make use of Sieve, but I'm having quite the time finding out how to make it work. I'm running 1.0.13 on a Debian machine. Sieve appears to be compiled with it. I can access managesieve, and I have set up dovecot.conf with lda. I do not get a NO response when I PUTSCRIPI, but LISTSCRIPTS produces no result, so I assume it's not working properly, though if I try with a non-existent script I get an error message. Questions: 1. Is anyone else seeing this, or am I doing something wrong? 2. I have seen through Googling some dovecot.conf examples that suggest I should be using managesieve instead of lda (or in addition? - it's not clear), as in protocol managesieve { ... Any advice will be gratefully received. Thank you Cam -- Cam Ellison, PhD RPsych (BC #01417) Cam Ellison & Associates Ltd. 3446 Beach Avenue Roberts Creek BC V0N 2W2 Phone 604.885.4806 Fax 694.885.4809 Cell 604.989.0635
cam at ellisonpsychology.ca
2008-Apr-07 03:59 UTC
[Dovecot] A little assistance with Sieve
With all the mess that my email has become, it makes sense for me to try to make use of Sieve, but I'm having quite the time finding out how to make it work. I'm running 1.0.13 on a Debian machine. Sieve appears to be compiled with it. I can access managesieve, and I have set up dovecot.conf with lda. I do not get a NO response when I PUTSCRIPI, but LISTSCRIPTS produces no result, so I assume it's not working properly, though if I try with a non-existent script I get an error message. Questions: 1. Is anyone else seeing this, or am I doing something wrong? 2. I have seen through Googling some dovecot.conf examples that suggest I should be using managesieve instead of lda (or in addition? - it's not clear), as in protocol managesieve { ... Any advice will be gratefully received. Thank you Cam -- Cam Ellison, PhD RPsych (BC #01417) Cam Ellison & Associates Ltd. 3446 Beach Avenue Roberts Creek BC V0N 2W2 Phone 604.885.4806 Fax 694.885.4809 Cell 604.989.0635
cam at ellisonpsychology.ca
2008-Apr-07 20:19 UTC
[Dovecot] A little assistance with Sieve
> From what I see here I am not quite sure whether you have understood > the ManageSieve protocol. The putscript command as specified above > expects you to provide 2049 bytes of script directly after entering the > command. It will not accept other commands until it has fully read the > 2049 bytes. (Refer to the specification > http://tools.ietf.org/id/draft-martin-managesieve-08.txt). The listing > above shows no script and a logout command in stead. You indicate that > you have to cancel the connection using Ctrl-C which is consistent with > that behavior. > > The following similar protocol session should show how it is done with a > trivially small script: > > OK "Logged in." > CAPABILITY > "IMPLEMENTATION" "dovecot" > "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags > notify include envelope body relational regex subaddress copy" > OK "Capability completed." > PUTSCRIPT "hotseflots" {6+} > keep; > OK "Putscript completed." > GETSCRIPT "hotseflots" > {6} > keep; > OK "Getscript completed. > SETACTIVE "hotseflots" > OK "Setactive completed." > LISTSCRIPTS > "phpscript" > "hotseflots" ACTIVE > "frop" > "ingo" > "fruts" > OK "Listscripts completed." > > BTW, it is not useful to upload a script called .dovecot.sieve on the > server. For managesieve, the .dovecot.sieve script (as looked for by the > Sieve plugin) is a symbolic link that points to the actual active script > in the sieve storage directory. That also explains the warning in your > follow-up e-mail, indicating that a normal file is still in place. When > you upload and activate a new script, the situation is resolved. The > regular file previously called .dovecot.sieve is moved to the sieve > directory as dovecot-orig.sieve (and listed as dovecot-orig). However, > if you consider your current sieve script to be important you are > advised to back it up before uploading and activating a script through > managesieve.OK. I understand all this. Thank you for the reference to the specification. Apart from the wrong name, I was using PUTSCRIPT instead of GETSCRIPT. Now, where do I have to put the scripts to GET them? My home directory does not work, nor do the /var/mail/user/ and /var/mail/user/Maildir directories. I get a "Script does not exist" response, though the script is in all three locations. Thank you for all the assistance Cam -- Cam Ellison, PhD RPsych (BC #01417) Cam Ellison & Associates Ltd. 3446 Beach Avenue Roberts Creek BC V0N 2W2 Phone 604.885.4806 Fax 694.885.4809 Cell 604.989.0635