Commit notifications for all Sup repositories
 help / color / mirror / Atom feed
From: Dan Callaghan <dan@bl2.djc.id.au>
To: sup-commits@supmua.dev
Subject: [sup.git] 03/04: drop unused indexable_content methods
Date: Sun, 19 Jul 2026 18:11:18 +1000	[thread overview]
Message-ID: <20260719081116.2B1DC218207@bl2.djc.id.au> (raw)
In-Reply-To: <178444867564.48613.6024460618149236020@bl2.djc.id.au>

New commit on branch develop:
https://supmua.dev/git/sup/commit/04ccc8069750cb79fac9ac3a3b993c39eb1fd285.html

commit 04ccc8069750cb79fac9ac3a3b993c39eb1fd285
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Sun May 3 17:11:32 2026 +1000

    drop unused indexable_content methods
---
 lib/sup/message.rb | 13 -------------
 lib/sup/person.rb  |  6 ------
 2 files changed, 19 deletions(-)

diff --git a/lib/sup/message.rb b/lib/sup/message.rb
index fb92c584..72921ac5 100644
--- 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
index 9a9ed501..7381ca6e 100644
--- 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

  parent reply	other threads:[~2026-07-19  8:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-19  8:11 [sup.git] branch develop updated (246af746 -> c20d8fe5) Dan Callaghan
2026-07-19  8:11 ` [sup.git] 01/04: contrib/nix/gem-install-shell.nix: update to Ruby 4.0 Dan Callaghan
2026-07-19  8:11 ` [sup.git] 02/04: micro-optimisation for Maildir#maildir_labels Dan Callaghan
2026-07-19  8:11 ` Dan Callaghan [this message]
2026-07-19  8:11 ` [sup.git] 04/04: don't fix_encoding! in Message#indexable_body Dan Callaghan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260719081116.2B1DC218207@bl2.djc.id.au \
    --to=dan@bl2.djc.id.au \
    --cc=djc@djc.id.au \
    --cc=sup-commits@supmua.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox