]> git.notmuchmail.org Git - sup/commitdiff
rename Message#content to Message#indexable_content
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 25 Jan 2008 04:17:59 +0000 (20:17 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 25 Jan 2008 04:17:59 +0000 (20:17 -0800)
lib/sup/index.rb
lib/sup/message.rb

index 1997c922163a12f8f9977a52ea0f5c9fd8fd8f46..0af66befb4c80d4acf2e2ebba2faa118c7ace5e6 100644 (file)
@@ -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 : "",
index d0c637054ee1f9f9986c1fda32fff37513b31c2a..1466c0486ffeae5a3827b10c9394affda861c336 100644 (file)
@@ -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}",