[Dovecot] dovecot 2.1.rc1: sieve and folders with umlauts
Hi,
now the umlauts problem with sieve:
# cat /mailspool1/in-preetz.de/test1/.dovecot.sieve ## Generated by Roundcube Webmail SieveRules Plugin ## require ["fileinto"];
# rule:[Test] if anyof (header :contains "Subject" "test") { fileinto "m&APY-"; }
Error: DBBjDsXL5U7mIAAA/TNBsA: sieve: execution of script /mailspool1/in-preetz.de/test1/.dovecot.sieve failed, but implicit keep was successful (user logfile /mailspool1/in-preetz.de/test1/.dovecot.sieve.log may reveal additional details)
# cat /mailspool1/in-preetz.de/test1/.dovecot.sieve.log sieve: info: started log at Dec 12 10:40:04. error: msgid=20111212094004.DB86918594@mx4.constabel-it.de: failed to store into mailbox 'm&APY-': Mailbox doesn't exist: m&-APY-.
Here the same:
'm&APY-' != "m&-APY-"
Mike
On 12.12.2011, at 11.46, Mike Constabel wrote:
now the umlauts problem with sieve: .. ## Generated by Roundcube Webmail SieveRules Plugin ##
Roundcube bug/"feature".
fileinto "m&APY-";
Sieve uses UTF-8 mailbox names. The reason why Roundcube doesn't use them, is because some old Cyrus Sieve versions didn't use UTF-8.
Hello,
On 2011-12-12 at 10:58 CET Timo Sirainen wrote:
On 12.12.2011, at 11.46, Mike Constabel wrote:
now the umlauts problem with sieve: .. ## Generated by Roundcube Webmail SieveRules Plugin ##
Roundcube bug/"feature".
fileinto "m&APY-";
Sieve uses UTF-8 mailbox names. The reason why Roundcube doesn't use them, is because some old Cyrus Sieve versions didn't use UTF-8.
Ok, good to know. I found the setting in the roundcube sieverules plugin. After setting this to UTF-8 it works.
Thanks for the hint.
Mike
Op 12/12/2011 11:08 AM, Mike Constabel schreef:
Hello,
On 12.12.2011, at 11.46, Mike Constabel wrote:
## Generated by Roundcube Webmail SieveRules Plugin ## Roundcube bug/"feature". fileinto "m&APY-"; Sieve uses UTF-8 mailbox names. The reason why Roundcube doesn't use them, is because some old Cyrus Sieve versions didn't use UTF-8. Ok, good to know. I found the setting in the roundcube sieverules
On 2011-12-12 at 10:58 CET Timo Sirainen wrote: plugin. After setting this to UTF-8 it works.
For posterity:
The following setting of the Roundcube Sieverules plugin is relevant to solve this issue (from config.inc.php.dist):
// Sieve RFC says that we should use UTF-8 encoding for mailbox names, // but some implementations does not covert UTF-8 to modified UTF-7. // set to null for default behaviour $rcmail_config['sieverules_folder_encoding'] = null; Setting it to 'UTF-8' resolves the issue. Regards, Stephan.
Op 12/12/2011 10:46 AM, Mike Constabel schreef:
Hi,
now the umlauts problem with sieve:
# cat /mailspool1/in-preetz.de/test1/.dovecot.sieve ## Generated by Roundcube Webmail SieveRules Plugin ## require ["fileinto"];
# rule:[Test] if anyof (header :contains "Subject" "test") { fileinto "m&APY-"; }
And here it is actually correct. Sieve fileinto expects the argument to be in utf8 and you are passing the IMAP mutf7.
Use
fileinto "mö";
instead.
Regards,
Stephan.
Hello Stephan,
On 2011-12-12 at 11:00 CET Stephan Bosch wrote:
Op 12/12/2011 10:46 AM, Mike Constabel schreef:
Hi,
now the umlauts problem with sieve:
# cat /mailspool1/in-preetz.de/test1/.dovecot.sieve ## Generated by Roundcube Webmail SieveRules Plugin ## require ["fileinto"];
# rule:[Test] if anyof (header :contains "Subject" "test") { fileinto "m&APY-"; }
And here it is actually correct. Sieve fileinto expects the argument to be in utf8 and you are passing the IMAP mutf7.
Use
fileinto "mö";
instead.
Thanks for the hint, now it works. :)
Mike
participants (3)
-
Mike Constabel
-
Stephan Bosch
-
Timo Sirainen