Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: rakso on April 11, 2015, 11:59:49 AM

Title: managesieve not working
Post by: rakso on April 11, 2015, 11:59:49 AM
Hello,
the managesieve plugin does not work.

see screenshot attached: roundcube.jpg

If I click on the "filtersätze" I get in the log:

Quote
[11-Apr-2015 17:55:30 Europe/Berlin] ERROR: (NONEXISTENT) "Sieve script `IMPLEMENTATION\" \"Dovecot Pigeonhole' not found" (3)
an[11-Apr-2015 18:02:22 Europe/Berlin] ERROR: (NONEXISTENT) "Sieve script `VERSION\" \"1.0' not found" (3)
[11-Apr-2015 18:02:23 Europe/Berlin] ERROR: (NONEXISTENT) "Sieve script `IMPLEMENTATION\" \"Dovecot Pigeonhole' not found" (3)

RC 1.1.1 seems misunderstood something. The filters are created with tunderbird and working fine with dovecot.

And ideas?


Regards
Title: Re: managesieve not working
Post by: alec on April 12, 2015, 02:27:25 AM
What dovecot/pigeonhole version? Enable managesieve_debug and provide the log.
Title: Re: managesieve not working
Post by: rakso on April 12, 2015, 04:40:05 AM
Hi!

dovecot-pigeonhole-0.4.7       Sieve plugin for the Dovecot 'deliver' LDA and LMTP
dovecot2-2.2.16_1              Secure, fast and powerful IMAP and POP3 server


Code: [Select]
2015-04-12 10:41:03 managesieve-login: Info: Login: user=<redaktion@domain.xx>, method=PLAIN, rip=217.xxx, mpid=96894, TLS, TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits) zlib compression
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: Added userdb setting: plugin/maildir=domain.xx/redaktion/
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: Effective uid=130, gid=130, home=/data/maildirs/domain.xx/redaktion
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: maildir++: root=/data/maildirs/domain.xx/redaktion, index=, indexpvt=, control=, inbox=/data/maildirs/domain.xx/redaktion, alt=
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: Pigeonhole version 0.4.7 initializing
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: include: sieve_global is not set; it is currently not possible to include `:global' scripts.
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: Performing auto-detection
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: Root exists (/data/maildirs/domain.xx/redaktion)
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: Using active Sieve script path: /data/maildirs/domain.xx/redaktion/sieve/.dovecot.sieve
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: Using script storage path: /data/maildirs/domain.xx/redaktion/sieve
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: Using permissions from /data/maildirs/domain.xx/redaktion/sieve: mode=0700 gid=-1
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: Relative path to sieve storage in active link:
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: sync: Synchronization active
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: quota: Storage limit: 10485760 bytes
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file storage: quota: Script count limit: 10 scripts
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Debug: sieve: file script: Opened script `redaktionsieve' from `/data/maildirs/domain.xx/redaktion/sieve/redaktionsieve.sieve'
2015-04-12 10:41:03 managesieve(redaktion@domain.xx): Info: Disconnected: Logged out bytes=72/2736

its maybe about sieve_global ?

Title: Re: managesieve not working
Post by: alec on April 12, 2015, 08:12:27 AM
I was talking about the debugging option in Roundcube.
Title: Re: managesieve not working
Post by: rakso on April 12, 2015, 09:22:51 AM


"IMPLEMENTATION" "Cyrus timsieved v2.2.12"  is faked...


Code: [Select]
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "IMPLEMENTATION" "Cyrus timsieved v2.2.12"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "NOTIFY" "mailto"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "SASL" "PLAIN LOGIN"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "STARTTLS"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "VERSION" "1.0"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: OK "mailserver ready"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> C: CAPABILITY
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "IMPLEMENTATION" "Cyrus timsieved v2.2.12"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "NOTIFY" "mailto"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "SASL" "PLAIN LOGIN"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "STARTTLS"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: "VERSION" "1.0"
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: OK "Capability completed."
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> C: STARTTLS
[12-Apr-2015 15:22:55 +0200]: <9ceb1423> S: OK "Begin TLS negotiation now."
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> STARTTLS negotiation successful
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> C: CAPABILITY
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "IMPLEMENTATION" "Cyrus timsieved v2.2.12"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "NOTIFY" "mailto"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "SASL" "PLAIN LOGIN"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "VERSION" "1.0"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: OK "TLS negotiation successful."
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> C: AUTHENTICATE "PLAIN" "AHJlZGFrdGlvbkA3YWt0dWVsbC5kZQBORVdTL3NjaHJlaWJ0aXNjaA=="
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "IMPLEMENTATION" "Cyrus timsieved v2.2.12"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "NOTIFY" "mailto"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "SASL" "PLAIN LOGIN"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "VERSION" "1.0"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: OK "Capability completed."
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> C: CAPABILITY
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: OK "Logged in."
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> C: LISTSCRIPTS
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "IMPLEMENTATION" "Dovecot Pigeonhole"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "MAXREDIRECTS" "20"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "NOTIFY" "mailto"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "VERSION" "1.0"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: OK "Capability completed."
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> C: LISTSCRIPTS
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "redaktionsieve" ACTIVE
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: OK "Listscripts completed."
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> C: GETSCRIPT "redaktionsieve"
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: "redaktionsieve" ACTIVE
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: OK "Listscripts completed."
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> C: LOGOUT
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: {2214}
[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: #
# 2015-3-25

require "fileinto";
require "reject";

[.... my sieve script.... ]


[12-Apr-2015 15:22:56 +0200]: <9ceb1423> S: OK "Getscript completed."


Title: Re: managesieve not working
Post by: rakso on April 13, 2015, 02:45:57 PM
Any Idea?
Title: Re: managesieve not working
Post by: alec on April 14, 2015, 02:15:21 AM
I have no idea why it responds with two different IMPLEMENTATION strings. Looks like a bug. I propose to change the dovecot config so it does not introduce itself as Cyrus.
Title: Re: managesieve not working
Post by: rakso on April 14, 2015, 02:35:43 AM
ok, that was the reason. It works now with no-faked implementation string ;)
thanks!