[Dovecot] managesieve fileinto folder with international characters

Stephan Bosch stephan at rename-it.nl
Wed Oct 13 21:15:30 EEST 2010


  Op 13-10-2010 20:04, Edward Carraro schreef:
> I have a folder created in dovecot entered by the user as "ññoéé"
>
> On the file system it appears as "&APEA8Q-o&AOkA6Q-" (mUTF7)
>
> When creating a sieve rule, to file into the folder ññoéé, I am converting
> the name from UTF8 into UTF7, the rule becomes
>
> require ["fileinto"];
> if header :contains ["From"] "user at domain.com"
> {
>      fileinto "&APEA8Q-o&AOkA6Q-";
> }
>
>
> however when executed, a sieve log is generated saying:
>
> failed to store into mailbox '&APEA8Q-o&AOkA6Q-' (&-APEA8Q-o&-AOkA6Q-):
> Mailbox doesn't exist:&-APEA8Q-o&-AOkA6Q-.

So far, behavior is correct. Sieve uses UTF-8, whereas IMAP and mail 
store use mUTF-7.

> If I directly modify the sieve file and place the actual utf8 version of the
> folder in it
>
> require ["fileinto"];
> if header :contains ["From"] "user at domain.com"
> {
>      fileinto "ññoéé";
> }
>
> I get the following error:
>
> main_script: line 1: error: folder name specified for fileinto command is
> not utf-8: ññoéé.
>
A while back there was a bug in Dovecot UTF-8 verification. That should 
be fixed now. What versions of Dovecot and Pigeonhole are you using?

Regards,

Stephan.



More information about the dovecot mailing list