[Dovecot] managesieve fileinto folder with international characters

Timo Sirainen tss at iki.fi
Thu Oct 14 17:23:19 EEST 2010


On Wed, 2010-10-13 at 14:04 -0400, Edward Carraro wrote:

> 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éé";
> }

This should work.

> main_script: line 1: error: folder name specified for fileinto command is
> not utf-8: ññoéé.

Like others said, this really looks as if you're running older Dovecot
version. Is it possible that only e.g. your dovecot-lda is an older
version or something? Or that you weren't actually typing valid UTF-8 in
the script?

[tss at kurkku] ~% cat > .dovecot.sieve 
require ["fileinto"];
if header :contains ["From"] "user at domain.com"
{
    fileinto "ññoéé";
}

[tss at kurkku] ~% file .dovecot.sieve 
.dovecot.sieve: UTF-8 Unicode text

[tss at kurkku] ~% printf "From: user at domain.com\n\nplop\n" | dovecot-lda

And the result:

Oct 14 15:20:59 lda(29534 tss): Info: sieve: msgid=unspecified: subject=: stored mail into mailbox 'ññoéé' (&APEA8Q-o&AOkA6Q-)




More information about the dovecot mailing list