[Dovecot] header search for splitted word

Timo Sirainen tss at iki.fi
Thu Jan 6 23:58:44 EET 2005


On Fri, 2004-12-24 at 20:19 +0900, Kazuo Moriwaka wrote:
> I wrote a patch for header search about a word over two lines. 
> Please check it.
> 
> For example, following header string contains a word 
> splitted into two mime encoded block. It's normal behavior of 
> MUAs in CJK environment.
> 
> Subject: =?ISO-2022-JP?B?Sk1CGyRCJUQlIiE8JUslZSE8JTkhIRsoQkpBTBskQiVBJWMhPCU/GyhC?=
> 	=?ISO-2022-JP?B?GyRCITxKWCRHOVQkLxsoQiAbJEI0WjlxGyhCLxskQiVRJWklKhsoQi8bJEIlNSUkJVElcxsoQg==?=

The way UW-IMAP (and probably others) do it is that they check if MIME
block continues with another MIME block. If it does, the spaces between
them are ignored.

I think I'll do it that way for Dovecot, but with the current code it's
not that simple change. Maybe it's time for larger fixes in searching
code..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050106/be7fd319/attachment-0001.bin>


More information about the dovecot mailing list