sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 3682e1c8c3fa77ef2a0de02d75b1b520510ee279
parent b5c1bcbd4c25618574f94e683773647906f023e0
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Sun, 24 Feb 2008 14:33:09 -0800

SentManager adds just-sent messages to the index in the standard way

I.e., using PollManager#add_message_from_source, rather than doing it by
hand. (Symptom: the before-add-message hook wasn't being called for
sent messages.)

Diffstat:
M lib/sup/sent.rb | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/lib/sup/sent.rb b/lib/sup/sent.rb
@@ -22,11 +22,7 @@ class SentManager
       yield f
     end
 
-    @source.each do |offset, labels|
-      m = Message.new :source => @source, :source_info => offset, :labels => @source.labels
-      Index.sync_message m
-      UpdateManager.relay self, :added, m
-    end
+    PollManager.add_messages_from @source
   end
 end