l.chelchowski at eurocar.pl
2012-Apr-05 13:29 UTC
[Dovecot] Problem with polish characters and sieve fileinto
Hi, I have problems with sieve fileinto and polish characters in folder names: # rule:[??????????????????] elsif anyof (header :contains "Subject" "??????????????????") { fileinto "INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-"; } dovecot log: Apr 5 15:17:42 mailer dovecot: lmtp(54203, test at test1.com): rmHVJHabfU+70wAA9hAjDg: sieve: msgid=<4F7D9B68.4030206 at test2.com>: stored mail into mailbox 'INBOX' Apr 5 15:17:42 mailer dovecot: lmtp(54203, test at test1.com): Error: rmHVJHabfU+70wAA9hAjDg: sieve: execution of script /home/vmail/test1.com/test//.dovecot.sieve failed, but implicit keep was successful (user logfile /home/vmail/test1.com/test//.dovecot.sieve.log may reveal additional details) Apr 5 15:17:42 mailer postfix/lmtp[54202]: 941B1E2681F: to=<test at test1.com>, relay=m.test1.com[private/dovecot-lmtp], delay=0.04, delays=0/0.01/0/0.03, dsn=2.0.0, status=sent (250 2.0.0 <test at test1.com> rmHVJHabfU+70wAA9hAjDg Saved) dovecot.sieve.log: sieve: info: started log at Apr 05 15:17:42. error: msgid=<4F7D9B68.4030206 at test2.com>: failed to store into mailbox 'INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-' (INBOX/&-AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-): Mailbox doesn't exist: INBOX.&-AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-. Thanks for help. -- Pozdrawiam ?ukasz
Artur ZaprzaĆa
2012-Apr-05 13:45 UTC
[Dovecot] Problem with polish characters and sieve fileinto
l.chelchowski at eurocar.pl wrote:> Hi, > > I have problems with sieve fileinto and polish characters in folder names: > # rule:[??????????????????] > elsif anyof (header :contains "Subject" "??????????????????") > { > fileinto "INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-"; > } >Sieve script expects UTF-8 folder names. This should work: fileinto "INBOX/??????????????????"; You can also use UTF-8 mailbox names on disk if you add UTF-8 option to mail_location: mail_location = maildir:~/Maildir:UTF-8 but you have to convert existing names to UTF-8 somehow.> > dovecot log: > Apr 5 15:17:42 mailer dovecot: lmtp(54203, test at test1.com): > rmHVJHabfU+70wAA9hAjDg: sieve: msgid=<4F7D9B68.4030206 at test2.com>: stored mail > into mailbox 'INBOX' > Apr 5 15:17:42 mailer dovecot: lmtp(54203, test at test1.com): Error: > rmHVJHabfU+70wAA9hAjDg: sieve: execution of script > /home/vmail/test1.com/test//.dovecot.sieve failed, but implicit keep was > successful (user logfile /home/vmail/test1.com/test//.dovecot.sieve.log may > reveal additional details) > Apr 5 15:17:42 mailer postfix/lmtp[54202]: 941B1E2681F: to=<test at test1.com>, > relay=m.test1.com[private/dovecot-lmtp], delay=0.04, delays=0/0.01/0/0.03, > dsn=2.0.0, status=sent (250 2.0.0 <test at test1.com> rmHVJHabfU+70wAA9hAjDg Saved) > > > dovecot.sieve.log: > sieve: info: started log at Apr 05 15:17:42. > error: msgid=<4F7D9B68.4030206 at test2.com>: failed to store into mailbox > 'INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-' > (INBOX/&-AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-): Mailbox doesn't > exist: INBOX.&-AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-. > > Thanks for help.-- Talex Sp??ka Akcyjna z siedzib? w Poznaniu adres: ul. Karpia 27d, 61-619 Pozna? NIP 782-00-21-045 zarejestrowana w S?dzie Rejonowym Pozna? ? Nowe Miasto i Wilda w Poznaniu VIII Wydzia? Gospodarczy - KRS pod nr 000048779 kapita? zak?adowy: 3.000.092,00 PLN (w ca?o?ci wp?acony) Uwaga: Niniejsza wiadomo??, w szczeg?lno?ci jej tre?? oraz za??czniki, mo?e by? poufna. W przypadku, gdy nie jest Pan/Pani zamierzonym jej adresatem, informujemy, ?e wszelkie rozpowszechnianie, dystrybucja lub powielanie powy?szej wiadomo?ci jest zabronione. Jednocze?nie prosimy o powiadomienie nadawcy oraz niezw?oczne usuni?cie powy?szej wiadomo?ci wraz z za??cznikami. Dzi?kujemy, Talex S.A. w Poznaniu. Confidentiality Notice: This email, particularly its content and any attached files, may be confidential. If you are not an intended recipient, any disclosure, distribution and reproduction of this message is prohibited. In this case please notify the sender immediately and then delete this message and any attachments. Thank you, Talex S.A., Poznan.
Stephan Bosch
2012-Apr-05 13:47 UTC
[Dovecot] Problem with polish characters and sieve fileinto
Op 4/5/2012 3:29 PM, l.chelchowski at eurocar.pl schreef:> Hi, > > I have problems with sieve fileinto and polish characters in folder > names: > # rule:[??????????????????] > elsif anyof (header :contains "Subject" "??????????????????") > { > fileinto "INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-"; > }Looks like your Sieve GUI uses the wrong Unicode format. The above is mUTF7 as used by IMAP. However, Sieve expects UTF-8. So it should use this instead: fileinto "INBOX/??????????????????"; Regards, Stephan.
Stephan Bosch
2012-Apr-06 17:08 UTC
[Dovecot] Problem with polish characters and sieve fileinto
On 4/5/2012 3:47 PM, Stephan Bosch wrote:> Op 4/5/2012 3:29 PM, l.chelchowski at eurocar.pl schreef: >> Hi, >> >> I have problems with sieve fileinto and polish characters in folder >> names: >> # rule:[??????????????????] >> elsif anyof (header :contains "Subject" "??????????????????") >> { >> fileinto "INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-"; >> } > > Looks like your Sieve GUI uses the wrong Unicode format. The above is > mUTF7 as used by IMAP. However, Sieve expects UTF-8. So it should use > this instead: > > fileinto "INBOX/??????????????????";Added item to the troubleshooting wiki page: http://master.wiki2.dovecot.org/Pigeonhole/Sieve/Troubleshooting#Mailbox_Names_with_non-ASCII_Characters_Cause_Problems By the looks of it, you are also using the RoundCube SieveRules plugin. The solution for RoundCube mentioned in the wiki should solve it for you. Regards, Stephan.