[Dovecot] Sieve, vacation, variables and russian language

Timo Sirainen tss at iki.fi
Sat Sep 12 01:51:28 EEST 2009


On Fri, 2009-09-11 at 18:05 -0400, Timo Sirainen wrote:
> I think the main reason this hasn't been implemented yet is that this
> conversion isn't required anywhere else in Dovecot. So the first step
> would be to create RFC 2047 encoder for Dovecot. Feel free to implement
> one. :)

Well, I actually spent some time writing the code anyway. Not tested at
all currently. I started writing unit tests but it didn't get very far.
I'm not really sure what kind of decisions I should use to figure out
where to start/end the encoded words or when to use base64 instead of
q-p. Currently it uses:

 - if only one word has non-ascii, encode only that word. otherwise
encode the whole string.
 - if more than 1/3 of string has non-ascii characters, use base64.

Attached a patch for it. Of course you'd still need to change Sieve to
use it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: text/x-patch
Size: 3763 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20090911/081eeaea/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090911/081eeaea/attachment-0001.bin 


More information about the dovecot mailing list