[Dovecot] sieve and utf-7 foldernames
Hi all,
since many dovecot/pigeonhole versions I have an error: Mails are delivered into wrong folders if the foldername contain a german umlaut. ( ä, ö, ü )
setup: dovecot-2.1.1 / pigeonhole-0.3.0 postfix deliver to dovecot-lda
.dovecot.sieve contains this:
require ["fileinto","reject","vacation","relational","comparator-i;ascii-numeric","regex"]; if header :contains "To" "green@example.org" { fileinto "INBOX.gr&APw-n"; stop; }
a mail to the mentioned address produces this logging: Mar 9 22:23:10 test dovecot: lda(foo): save: box=INBOX.gr&APw-n, uid=2, msgid=<4711@example.org>, size=4642
also a mail_debug=yes log no more lines related to the foldername
but at the end I found the mail not in the expected folder. It places in "INBOX.gr&-APw-n" notice the extra minus after &
I think it's pigeonholes fault but I may be wrong ...
# doveconf -n # 2.1.1: /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-686 i686 Debian 5.0.9 ext3 ... lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes listen = 127.0.0.1, ::1 protocols = " imap sieve" protocol lda { mail_plugins = quota notify mail_log sieve } ...
Andreas
On 03/09/2012 10:40 PM Andreas Schulze wrote:
Hi all,
since many dovecot/pigeonhole versions I have an error: Mails are delivered into wrong folders if the foldername contain a german umlaut. ( ä, ö, ü ) …
Behaves as documented - since Dovecot 1.2.0:
Wiki > Upgrading > v1.1 to v1.2 > Sieve: * You should consider migrating from CMU Sieve to Dovecot Sieve (see the link for instructions)
http://wiki.dovecot.org/LDA/Sieve/Dovecot#Migration_from_CMUSieve:
- Be sure to use UTF8 for the mailbox argument of the fileinto command. Older CMUSieve installations used modified UTF7 (as IMAP does) for the mailbox parameter. If not adjusted, the new Sieve plugin will use the wrong folder name for storing the message.
Regards, Pascal
The trapper recommends today: cafefeed.1207001@localdomain.org
participants (2)
-
Andreas Schulze
-
Pascal Volk