From: William Morgan Date: Sun, 24 Feb 2008 22:33:09 +0000 (-0800) Subject: SentManager adds just-sent messages to the index in the standard way X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=3682e1c8c3fa77ef2a0de02d75b1b520510ee279;p=sup 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.) --- diff --git a/lib/sup/sent.rb b/lib/sup/sent.rb index 9c802d9..87b88e0 100644 --- 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