[Dovecot] sieve and fileinto encoding
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
And creates another folder ".&-BCEEEAQfBB8-", but GOOD folder name already exist ".&BCEEEAQfBB8-".
Please help to understand why dovecots deliver make this happen.
Best regards Michael
p.s. dovecot -n # 1.2.6: /etc/dovecot/dovecot.conf # OS: Linux 2.6.28-hardened-r9 i686 Gentoo Base System release 1.12.11.1 reiserfs log_path: /var/log/dovecot_err.log info_log_path: /var/log/dovecot_info.log protocols: imap pop3 imaps pop3s managesieve ssl_cert_file: /etc/dovecot/ssl/mail.proton-sss.ru.pem ssl_key_file: /etc/dovecot/ssl/mail.proton-sss.ru.key disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_executable(managesieve): /usr/libexec/dovecot/managesieve-login mail_location: maildir:/home/%u/.maildir mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_executable(managesieve): /usr/libexec/dovecot/managesieve mail_plugins(default): acl imap_acl mail_plugins(imap): acl imap_acl mail_plugins(pop3): mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 mail_plugin_dir(managesieve): /usr/lib/dovecot/managesieve namespace: type: private separator: / inbox: yes list: yes subscriptions: yes namespace: type: shared separator: / prefix: shared/%%u/ location: maildir:%%h/.maildir/:INDEX=%h/.maildir/shared/%%u list: children subscriptions: yes lda: postmaster_address: postmaster@example.com mail_plugins: acl sieve mail_plugin_dir: /usr/lib/dovecot/lda log_path: /var/log/dovecot_deliver.log auth default: mechanisms: plain login passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 group: mail master: path: /var/run/dovecot/auth-master mode: 432 user: mail group: users plugin: acl: vfile acl_shared_dict: file:/var/lib/dovecot/shared-mailboxes sieve: %h/.dovecot.sieve sieve_dir: %h/sieve dict: expire: db:/var/lib/dovecot/expire.db
On Wed, 2009-10-28 at 00:14 +0300, proton-sss wrote:
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
This is the correct way.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
This is the wrong way, but they're doing it because some existing software didn't handle the UTF-8 mailbox names properly. I'd suggest fixing this on ingo/avelsieve side. Perhaps they already have a setting for it.
On Wed, 28 Oct 2009 00:14:50 +0300 proton-sss michael@proton-sss.ru wrote:
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
And creates another folder ".&-BCEEEAQfBB8-", but GOOD folder name already exist ".&BCEEEAQfBB8-".
Please help to understand why dovecots deliver make this happen.
Best regards Michael
Take a look at http://dovecot.org/list/dovecot/2009-July/041690.html
Also, roundcube with latest sieverules plugin can handle utf8-sieve directories in correct way.
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 00:14:50 +0300 proton-sss michael@proton-sss.ru wrote:
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
And creates another folder ".&-BCEEEAQfBB8-", but GOOD folder name already exist ".&BCEEEAQfBB8-".
Please help to understand why dovecots deliver make this happen.
Best regards Michael
Take a look at http://dovecot.org/list/dovecot/2009-July/041690.html
Also, roundcube with latest sieverules plugin can handle utf8-sieve directories in correct way.
As i understood only way is patch scriptgenerator to delete conversation from utf- 8. Is i`m rigth ?
Best Regards Michael
On Wed, 28 Oct 2009 11:20:08 +0300 Михаил Захаренко michael@proton-sss.ru wrote:
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 00:14:50 +0300 proton-sss michael@proton-sss.ru wrote:
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
And creates another folder ".&-BCEEEAQfBB8-", but GOOD folder name already exist ".&BCEEEAQfBB8-".
Please help to understand why dovecots deliver make this happen.
Best regards Michael
Take a look at http://dovecot.org/list/dovecot/2009-July/041690.html
Also, roundcube with latest sieverules plugin can handle utf8-sieve directories in correct way.
As i understood only way is patch scriptgenerator to delete conversation from utf- 8. Is i`m rigth ?
Sieverules plugin have config setting for this: // Sieve RFC says that we should use UTF-8 endcoding for mailbox names, // but some implementations does not covert UTF-8 to modified UTF-7. // set to null for default behaviour $sieverules_config['folder_encoding'] = 'UTF-8';
As I know, others implementations leak this feature, so you should hack sources.
Best Regards Michael
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 11:20:08 +0300 Михаил Захаренко michael@proton-sss.ru wrote:
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 00:14:50 +0300 proton-sss michael@proton-sss.ru wrote:
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
And creates another folder ".&-BCEEEAQfBB8-", but GOOD folder name already exist ".&BCEEEAQfBB8-".
Please help to understand why dovecots deliver make this happen.
Best regards Michael
Take a look at http://dovecot.org/list/dovecot/2009-July/041690.html
Also, roundcube with latest sieverules plugin can handle utf8-sieve directories in correct way.
As i understood only way is patch scriptgenerator to delete conversation from utf- 8. Is i`m rigth ?
Sieverules plugin have config setting for this: // Sieve RFC says that we should use UTF-8 endcoding for mailbox names, // but some implementations does not covert UTF-8 to modified UTF-7. // set to null for default behaviour $sieverules_config['folder_encoding'] = 'UTF-8';
As I know, others implementations leak this feature, so you should hack sources.
is it roundcube plugin?
in last version i don`t find this option in config (or source). Please help to find appropriate version of plugin.
Thanks anyway. Michael.
On Wed, 28 Oct 2009 14:11:08 +0300 Михаил Захаренко michael@proton-sss.ru wrote:
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 11:20:08 +0300 Михаил Захаренко michael@proton-sss.ru wrote:
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 00:14:50 +0300 proton-sss michael@proton-sss.ru wrote:
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
And creates another folder ".&-BCEEEAQfBB8-", but GOOD folder name already exist ".&BCEEEAQfBB8-".
Please help to understand why dovecots deliver make this happen.
Best regards Michael
Take a look at http://dovecot.org/list/dovecot/2009-July/041690.html
Also, roundcube with latest sieverules plugin can handle utf8-sieve directories in correct way.
As i understood only way is patch scriptgenerator to delete conversation from utf- 8. Is i`m rigth ?
Sieverules plugin have config setting for this: // Sieve RFC says that we should use UTF-8 endcoding for mailbox names, // but some implementations does not covert UTF-8 to modified UTF-7. // set to null for default behaviour $sieverules_config['folder_encoding'] = 'UTF-8';
As I know, others implementations leak this feature, so you should hack sources.
is it roundcube plugin?
Yes
in last version i don`t find this option in config (or source). Please help to find appropriate version of plugin.
Thank You! All works perfect!!!
Best Regards Michael Zakharenko!
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 14:11:08 +0300 Михаил Захаренко michael@proton-sss.ru wrote:
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 11:20:08 +0300 Михаил Захаренко michael@proton-sss.ru wrote:
Nikita Koshikov пишет:
On Wed, 28 Oct 2009 00:14:50 +0300 proton-sss michael@proton-sss.ru wrote:
Hello All! I`m using dovecot 1.2.6 I have folder named in russian "САПП", and when in filter i wrote: fileinto "САПП"; all works well.
Now i find 2 web applications to manage sieve filters (horde-ingo and squirrelmail/avelsieve) - then creates filter like this: if header :contains "Subject" "САПП" { fileinto "&BCEEEAQfBB8-"; stop; }
And creates another folder ".&-BCEEEAQfBB8-", but GOOD folder name already exist ".&BCEEEAQfBB8-".
Please help to understand why dovecots deliver make this happen.
Best regards Michael
Take a look at http://dovecot.org/list/dovecot/2009-July/041690.html
Also, roundcube with latest sieverules plugin can handle utf8-sieve directories in correct way.
As i understood only way is patch scriptgenerator to delete conversation from utf- 8. Is i`m rigth ?
Sieverules plugin have config setting for this: // Sieve RFC says that we should use UTF-8 endcoding for mailbox names, // but some implementations does not covert UTF-8 to modified UTF-7. // set to null for default behaviour $sieverules_config['folder_encoding'] = 'UTF-8';
As I know, others implementations leak this feature, so you should hack sources.
is it roundcube plugin?
Yes
in last version i don`t find this option in config (or source). Please help to find appropriate version of plugin.
participants (4)
-
Nikita Koshikov
-
proton-sss
-
Timo Sirainen
-
Михаил Захаренко