Igor Zinovik
2012-Aug-21 17:51 UTC
[Dovecot] How dovecot treats UTF8 mailbox names in sieve scripts and `namespace' section
Hello. I read on upgrading page that one can use UTF8 mailbox names for plugins. As i understand i do not need to convert UTF8 names to mUTF-7 and can use raw UTF8 in plugins section, e.g.: /etc/dovecot/dovecot.conf ... plugin { ... # Autocreate \Spam folder autocreate = ???? autosubscribe = ???? ... But what about sieve scripts and other configuration sections: 1. Do i need to convert UTF8 mailbox names in `namespace' section? namespace inbox { ... mailbox &BCEEPwQwBDw- { special_use = \Junk } 2. Do i need to convert UTF8 mailbox names in sieve scripts? /etc/dovecot/dovecot_before.sieve ... require ["reject","fileinto"]; # Put all spam into separete IMAP folder if header :contains "X-Spam-Flag" "YES" { fileinto "&BCEEPwQwBDw-"; }
Stephan Bosch
2012-Aug-21 19:10 UTC
[Dovecot] How dovecot treats UTF8 mailbox names in sieve scripts and `namespace' section
On 8/21/2012 7:51 PM, Igor Zinovik wrote:> 2. Do i need to convert UTF8 mailbox names in sieve scripts? > /etc/dovecot/dovecot_before.sieve > > require ["reject","fileinto"]; > > # Put all spam into separete IMAP folder > if header :contains "X-Spam-Flag" "YES" { > fileinto "&BCEEPwQwBDw-"; > }The Sieve language only accepts UTF-8, making the above example wrong. That is also what Pigeonhole Sieve requires. The much older cmusieve plugin did use mUTF7, but I'm hoping that very few people are still using that. Regards, Stephan
Timo Sirainen
2012-Aug-22 14:36 UTC
[Dovecot] How dovecot treats UTF8 mailbox names in sieve scripts and `namespace' section
On Tue, 2012-08-21 at 21:51 +0400, Igor Zinovik wrote:> I read on upgrading page that one can use UTF8 mailbox names for > plugins. As i understand i do not need to convert UTF8 names to mUTF-7 > and can use raw UTF8 in plugins section, e.g.: > /etc/dovecot/dovecot.confYou couldn't need to use mUTF7 anywhere at all anymore. If you do, it's a bug.