sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 04ccc8069750cb79fac9ac3a3b993c39eb1fd285
parent e336a0e83da82f53be2cf5e5d8911ceeb096825a
Author: Dan Callaghan <djc@djc.id.au>
Date:   Sun,  3 May 2026 17:11:32 +1000

drop unused indexable_content methods

Diffstat:
M lib/sup/message.rb | 13 -------------
M lib/sup/person.rb | 6 ------
2 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -333,19 +333,6 @@ EOS
     end
   end
 
-  ## returns all the content from a message that will be indexed
-  def indexable_content
-    load_from_source!
-    [
-      from && from.indexable_content,
-      to.map { |p| p.indexable_content },
-      cc.map { |p| p.indexable_content },
-      bcc.map { |p| p.indexable_content },
-      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.map { |l| l.fix_encoding! }.join " "
   end
diff --git a/lib/sup/person.rb b/lib/sup/person.rb
@@ -71,12 +71,6 @@ class Person
   def eql? o; email.eql? o.email end
   def hash; email.hash end
 
-
-  ## see comments in self.from_address
-  def indexable_content
-    [name, email, email.split(/@/).first].join(" ")
-  end
-
   class << self
 
     def full_address name, email