[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@test1.com): rmHVJHabfU+70wAA9hAjDg: sieve: msgid=4F7D9B68.4030206@test2.com: stored mail into mailbox 'INBOX' Apr 5 15:17:42 mailer dovecot: lmtp(54203, test@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@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@test1.com rmHVJHabfU+70wAA9hAjDg Saved)
dovecot.sieve.log: sieve: info: started log at Apr 05 15:17:42. error: msgid=4F7D9B68.4030206@test2.com: failed to store into mailbox 'INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-' (INBOX/&-AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-): Mailbox doesn't exist: INBOX.&-AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-.
Thanks for help.
Pozdrawiam Łukasz
l.chelchowski@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@test1.com): rmHVJHabfU+70wAA9hAjDg: sieve: msgid=4F7D9B68.4030206@test2.com: stored mail into mailbox 'INBOX' Apr 5 15:17:42 mailer dovecot: lmtp(54203, test@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@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@test1.com rmHVJHabfU+70wAA9hAjDg Saved)
dovecot.sieve.log: sieve: info: started log at Apr 05 15:17:42. error: msgid=4F7D9B68.4030206@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.
Op 4/5/2012 3:29 PM, l.chelchowski@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.
On 4/5/2012 3:47 PM, Stephan Bosch wrote:
Op 4/5/2012 3:29 PM, l.chelchowski@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_Nam...
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.
participants (3)
-
Artur Zaprzała
-
l.chelchowski@eurocar.pl
-
Stephan Bosch