Convert non-UTF-8 parts to UTF-8 before indexing them
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 24 Feb 2012 07:36:22 +0000 (08:36 +0100)
committerDavid Bremner <bremner@debian.org>
Wed, 29 Feb 2012 11:41:39 +0000 (07:41 -0400)
commit40edc971a82e236704216058591d4c7684f8058f
tree5daca1da235a69fd1feee9b50f4186ef25472f78
parent74f8f15adc1e6fce2d3fcc34b7e9ef0b65d926db
Convert non-UTF-8 parts to UTF-8 before indexing them

This fixes a bug that didn't allow to search for non-ASCII words such
parts. The code here was copied from show_text_part_content(), because
the show command already does the needed conversion when showing the
message.
lib/index.cc