From: Dan Callaghan <dan@bl2.djc.id.au>
To: sup-commits@supmua.dev
Subject: [sup.git] 01/08: delete dead report_broken_sources method
Date: Sat, 28 Nov 2026 17:13:36 +1100 [thread overview]
Message-ID: <20261128061335.4F66B2D45C9@bl2.djc.id.au> (raw)
In-Reply-To: <179584641514.302139.17817016268117078700@bl2.djc.id.au>
New commit on branch develop:
https://supmua.dev/git/sup/commit/192c6873dbf8d16cdea849a601cbe2614743ff8a.html
commit 192c6873dbf8d16cdea849a601cbe2614743ff8a
Author: Dan Callaghan <djc@djc.id.au>
AuthorDate: Sat Nov 21 10:52:57 2026 +1100
delete dead report_broken_sources method
It has been unused since commit 7edbb7ee67.
---
lib/sup.rb | 52 +---------------------------------------------------
1 file changed, 1 insertion(+), 51 deletions(-)
diff --git a/lib/sup.rb b/lib/sup.rb
index 82f465c5..f303aaac 100644
--- a/lib/sup.rb
+++ b/lib/sup.rb
@@ -262,56 +262,6 @@ EOS
$config = nil
end
- ## not really a good place for this, so I'll just dump it here.
- ##
- ## a source error is either a FatalSourceError or an OutOfSyncSourceError.
- ## the superclass SourceError is just a generic.
- def report_broken_sources opts={}
- return unless BufferManager.instantiated?
-
- broken_sources = SourceManager.sources.select { |s| s.error.is_a? FatalSourceError }
- unless broken_sources.empty?
- BufferManager.spawn_unless_exists("Broken source notification for #{broken_sources.join(',')}", opts) do
- TextMode.new(<<EOM)
-Source error notification
--------------------------
-
-Hi there. It looks like one or more message sources is reporting
-errors. Until this is corrected, messages from these sources cannot
-be viewed, and new messages will not be detected.
-
-#{broken_sources.map { |s| "Source: " + s.to_s + "\n Error: " + s.error.message.wrap(70).join("\n ")}.join("\n\n")}
-EOM
-#' stupid ruby-mode
- end
- end
-
- desynced_sources = SourceManager.sources.select { |s| s.error.is_a? OutOfSyncSourceError }
- unless desynced_sources.empty?
- BufferManager.spawn_unless_exists("Out-of-sync source notification for #{broken_sources.join(',')}", opts) do
- TextMode.new(<<EOM)
-Out-of-sync source notification
--------------------------------
-
-Hi there. It looks like one or more sources has fallen out of sync
-with my index. This can happen when you modify these sources with
-other email clients. (Sorry, I don't play well with others.)
-
-Until this is corrected, messages from these sources cannot be viewed,
-and new messages will not be detected. Luckily, this is easy to correct!
-
-#{desynced_sources.map do |s|
- "Source: " + s.to_s +
- "\n Error: " + s.error.message.wrap(70).join("\n ") +
- "\n Fix: sup-sync --changed #{s.to_s}"
- end}
-EOM
-#' stupid ruby-mode
- end
- end
- end
-
-
## set up default configuration file
def load_config filename
default_config = {
@@ -381,7 +331,7 @@ EOM
end
module_function :save_yaml_obj, :load_yaml_obj, :start, :finish,
- :report_broken_sources, :load_config, :managers,
+ :load_config, :managers,
:check_syncback_settings
end
next prev parent reply other threads:[~2026-11-28 6:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 6:13 [sup.git] branch develop updated (ce27c933 -> 53f07beb) Dan Callaghan
2026-11-28 6:13 ` Dan Callaghan [this message]
2026-11-28 6:13 ` [sup.git] 02/08: sup-sync-back-maildir: remove broken negative short options Dan Callaghan
2026-11-28 6:13 ` [sup.git] 03/08: show both raw and encoded sizes of attachments Dan Callaghan
2026-11-28 6:13 ` [sup.git] 04/08: shell escape bounce destination addresses Dan Callaghan
2026-11-28 6:13 ` [sup.git] 05/08: call setlocale() through ncurses bindings instead of fiddle Dan Callaghan
2026-11-28 6:13 ` [sup.git] 06/08: use libmagic to detect attachment MIME types Dan Callaghan
2026-11-28 6:13 ` [sup.git] 07/08: clean up directory traversal in Maildir#poll Dan Callaghan
2026-11-28 6:13 ` [sup.git] 08/08: bring back sup-recover-sources from the dead 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=20261128061335.4F66B2D45C9@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