@dir = dir
@sources = {}
@sources_dirty = false
- @qparser ||= Ferret::QueryParser.new :default_field => :body, :analyzer => Ferret::Analysis::WhiteSpaceAnalyzer.new
+ @qparser ||= Ferret::QueryParser.new :default_field => :body, :analyzer => Ferret::Analysis::WhiteSpaceAnalyzer.new(true)
self.class.i_am_the_instance self
end
def content
[
- from && from.longname,
- to.map { |p| p.longname },
- cc.map { |p| p.longname },
- bcc.map { |p| p.longname },
+ from && (from.name + " " + from.email),
+ to.map { |p| p.name + " " + p.email },
+ cc.map { |p| p.name + " " + p.email },
+ bcc.map { |p| p.name + " " + p.email },
to_chunks.select { |c| c.is_a? Text }.map { |c| c.lines },
- subj,
+ Message.normalize_subj(subj),
].flatten.compact.join " "
end