commit 360e105c0d08a5765b23c37b2026bff586b3d136
parent aa42404f63155b29fb148b10c72e222ad072efe0
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Thu, 24 Jan 2008 20:17:59 -0800
rename Message#content to Message#indexable_content
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/sup/index.rb b/lib/sup/index.rb
@@ -183,7 +183,7 @@ EOS
:source_id => source_id,
:source_info => m.source_info,
:date => m.date.to_indexable_s,
- :body => m.content,
+ :body => m.indexable_content,
:snippet => snippet,
:label => m.labels.uniq.join(" "),
:from => m.from ? m.from.email : "",
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -248,7 +248,8 @@ EOS
with_source_errors_handled { @source.each_raw_message_line(@source_info, &b) }
end
- def content
+ ## returns all the content from a message that will be indexed
+ def indexable_content
load_from_source!
[
from && "#{from.name} #{from.email}",