commit 79d16576664e81ff07372b94831d70314ebbc32e
parent 1b14fbd33dc4219c3e1a21604b91255a4583e5f2
Author: Scott Bonds <scott@ggr.com>
Date: Fri, 19 Sep 2014 10:01:06 -0700
fix encoding before indexing
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -335,13 +335,13 @@ EOS
to.map { |p| p.indexable_content },
cc.map { |p| p.indexable_content },
bcc.map { |p| p.indexable_content },
- indexable_chunks.map { |c| c.lines },
+ indexable_chunks.map { |c| c.lines.map { |l| l.fix_encoding! } },
indexable_subject,
].flatten.compact.join " "
end
def indexable_body
- indexable_chunks.map { |c| c.lines }.flatten.compact.join " "
+ indexable_chunks.map { |c| c.lines }.flatten.compact.map { |l| l.fix_encoding! }.join " "
end
def indexable_chunks