[Dovecot] pigeonhole and utf-8 error
Hi, now, I'm working with the last version of dovecot and pigeonhole sieve, and when apply a sieve filter on a new message, and it try to move this mail to a folder with special character like accent give me the error 'mailbox name not utf-8: ...'
Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error: kea6K484akytTAAAJBW4rA: sieve: msgid= 1099311971.505.1282029699154.JavaMail.open-xchange@o.uib.es: failed to store into mailbox 'atenció': >mailbox name not utf-8: atenció
dovecot it's working without problem on this folder. I suppose it's a misconfiguration, but I don't find where...
Xavier
On Tue, 2010-08-17 at 09:35 +0200, Xavier Pons wrote:
Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error: kea6K484akytTAAAJBW4rA: sieve: msgid= 1099311971.505.1282029699154.JavaMail.open-xchange@o.uib.es: failed to store into mailbox 'atenció': >mailbox name not utf-8: atenció
dovecot it's working without problem on this folder. I suppose it's a misconfiguration, but I don't find where...
I guess you wrote the script with ISO-8859-x charset or something instead of UTF-8.
El 17/08/2010 18:57, Timo Sirainen escribió:
On Tue, 2010-08-17 at 09:35 +0200, Xavier Pons wrote:
Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error: kea6K484akytTAAAJBW4rA: sieve: msgid= 1099311971.505.1282029699154.JavaMail.open-xchange@o.uib.es: failed to store into mailbox 'atenció':>mailbox name not utf-8: atenció
dovecot it's working without problem on this folder. I suppose it's a misconfiguration, but I don't find where... I guess you wrote the script with ISO-8859-x charset or something instead of UTF-8.
my default system LANG is 'en_US.UTF-8'. Also, I have tried to edit this filter with 'vi "+set encoding=utf-8" sievefilter' , and the folder name it's correctly writed/displayed, but when it's executed from dovecot lmtp give me this error.
I'm using dovecot with default mUTF-7 encoding, and in the pigeonhole configuration I didn't see nothing related to encoding charset . Could I configure dovecot to work with UTF-8 instead mUTF-7? this could help to resolve this problem? Nowadays It's recommended to use UTF-8 for non-english configurations?
thanks
Xavier
On 18/08/2010 08:38, Xavier Pons wrote:
El 17/08/2010 18:57, Timo Sirainen escribió:
On Tue, 2010-08-17 at 09:35 +0200, Xavier Pons wrote:
Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error: kea6K484akytTAAAJBW4rA: sieve: msgid= 1099311971.505.1282029699154.JavaMail.open-xchange@o.uib.es: failed to store into mailbox 'atenció':>mailbox name not utf-8: atenció
dovecot it's working without problem on this folder. I suppose it's a misconfiguration, but I don't find where... I guess you wrote the script with ISO-8859-x charset or something instead of UTF-8.
my default system LANG is 'en_US.UTF-8'. Also, I have tried to edit this filter with 'vi "+set encoding=utf-8" sievefilter' , and the folder name it's correctly writed/displayed, but when it's executed from dovecot lmtp give me this error.
To do an acid test, try viewing your filter using "cat -A".
If you get a sequence like "atenciM-s", then your character ó is represented by byte 0xF3 and it's ISO-8859-1 (or 2/3/9/10/13/14/15/16).
If you get a sequence like "atenciM-CM-3", then your character ó is represented by bytes 0xC3, 0xB3 and it's UTF-8.
Bill
El 18/08/2010 10:49, William Blunn escribió:
On 18/08/2010 08:38, Xavier Pons wrote:
El 17/08/2010 18:57, Timo Sirainen escribió:
On Tue, 2010-08-17 at 09:35 +0200, Xavier Pons wrote:
Aug 17 09:22:40 imap1 dovecot: lmtp(19629,miel): Error: kea6K484akytTAAAJBW4rA: sieve: msgid= 1099311971.505.1282029699154.JavaMail.open-xchange@o.uib.es: failed to store into mailbox 'atenció':>mailbox name not utf-8: atenció
dovecot it's working without problem on this folder. I suppose it's a misconfiguration, but I don't find where... I guess you wrote the script with ISO-8859-x charset or something instead of UTF-8.
my default system LANG is 'en_US.UTF-8'. Also, I have tried to edit this filter with 'vi "+set encoding=utf-8" sievefilter' , and the folder name it's correctly writed/displayed, but when it's executed from dovecot lmtp give me this error.
To do an acid test, try viewing your filter using "cat -A".
If you get a sequence like "atenciM-s", then your character ó is represented by byte 0xF3 and it's ISO-8859-1 (or 2/3/9/10/13/14/15/16).
If you get a sequence like "atenciM-CM-3", then your character ó is represented by bytes 0xC3, 0xB3 and it's UTF-8.
Bill
the result of a 'cat -A' of the filter file get me a representation of
"atenciM-CM-32"
then I could suppose it's correctly encoded in UTF-8, it's right?
and if it is, I don't know why dovecot lmtp gives me "mailbox name not
utf-8" ...
Xavier
On 08/18/2010 09:38 AM Xavier Pons wrote:
my default system LANG is 'en_US.UTF-8'. Also, I have tried to edit this filter with 'vi "+set encoding=utf-8" sievefilter' , and the folder name it's correctly writed/displayed, but when it's executed from dovecot lmtp give me this error.
I'm using dovecot with default mUTF-7 encoding, and in the pigeonhole configuration I didn't see nothing related to encoding charset . Could I configure dovecot to work with UTF-8 instead mUTF-7? this could help to resolve this problem? Nowadays It's recommended to use UTF-8 for non-english configurations?
Same here: IMAP folders in the FS are mutf-7 encoded. My ~/.dovecot.sieve is finest utf8. But the log contains: Error: … sieve: … failed to store into mailbox '→FølЀ®←': mailbox name not utf-8: →FølЀ®←
doveadm mailbox list →* -7 && doveadm mailbox list →* &IZI-F&APg-l&ANAgrACuIZA- →FølЀ®←
Regards, Pascal
The trapper recommends today: deadbeef.1023011@localdomain.org
On Wed, 2010-08-18 at 11:06 +0200, Pascal Volk wrote:
Same here: IMAP folders in the FS are mutf-7 encoded. My ~/.dovecot.sieve is finest utf8. But the log contains: Error: … sieve: … failed to store into mailbox '→FølЀ®←': mailbox name not utf-8: →FølЀ®←
Oh. The code has been buggy since v1.1. I think it also caused some search results to be broken. Added the fix for v1.1, v1.2 and v2.0 code trees.
On 08/18/2010 04:22 PM Timo Sirainen wrote:
Oh. The code has been buggy since v1.1. I think it also caused some search results to be broken. Added the fix for v1.1, v1.2 and v2.0 code trees.
Hm, didn't solve the problem.
master: Info: Dovecot v2.0.0 (706f30fa4028) starting up lmtp(…): Error: …: sieve: msgid=<…>: failed to store into mailbox '→FølЀ®←': mailbox name not utf-8: →FølЀ®←
Regards, Pascal
The trapper recommends today: f007ba11.1023106@localdomain.org
El 19/08/2010 6:18, Pascal Volk escribió:
On 08/18/2010 04:22 PM Timo Sirainen wrote:
Oh. The code has been buggy since v1.1. I think it also caused some search results to be broken. Added the fix for v1.1, v1.2 and v2.0 code trees.
http://hg.dovecot.org/dovecot-2.0/rev/8c46bf2c5176 Hm, didn't solve the problem.
master: Info: Dovecot v2.0.0 (706f30fa4028) starting up lmtp(…): Error: …: sieve: msgid=<…>: failed to store into mailbox '→FølЀ®←': mailbox name not utf-8: →FølЀ®←
Regards, Pascal Hi, I have tried the patch, and now it's working ok in our systems. Recognize correctly the utf8 folder name in filter file:
Aug 19 08:59:37 imap2 dovecot: lmtp(29758, xavier): xVuVA1nWbEw+dAAAnkSxNQ: sieve: msgid=4C6CD613.9060506@uib.es: stored mail into mailbox 'atenci&APM-'
Thanks
Xavier
-- xavier.pons@uib.es telef.: 917172888 Centre de Tecnologies de la Informació Universitat Illes Balears
On Thu, 2010-08-19 at 06:18 +0200, Pascal Volk wrote:
On 08/18/2010 04:22 PM Timo Sirainen wrote:
Oh. The code has been buggy since v1.1. I think it also caused some search results to be broken. Added the fix for v1.1, v1.2 and v2.0 code trees.
Hm, didn't solve the problem.
Yeah, it didn't.. I don't know where I got that entirely wrong UTF-8 checking logic. http://hg.dovecot.org/dovecot-2.0/rev/a83963495e55 should fix it properly.
On 08/19/2010 07:07 PM Timo Sirainen wrote:
… http://hg.dovecot.org/dovecot-2.0/rev/a83963495e55 should fix it properly.
Yes, looks good: ... stored mail into mailbox '&IZI-F&APg-l&ANAgrACuIZA-'
Regards, Pascal
The trapper recommends today: fabaceae.1023119@localdomain.org
participants (4)
-
Pascal Volk
-
Timo Sirainen
-
William Blunn
-
Xavier Pons