]> git.notmuchmail.org Git - sup/commitdiff
sent messages: explicitly remove :unread label
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 25 Feb 2008 05:18:51 +0000 (21:18 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 25 Feb 2008 05:18:51 +0000 (21:18 -0800)
A previous change had the effect of marking all sent messages as unread.
This reverts that behavior.

lib/sup/sent.rb

index 87b88e01906112e73bb0184baff371c128d4521e..ee843c7dc54837acbcc39daab851509037692bb0 100644 (file)
@@ -22,7 +22,10 @@ class SentManager
       yield f
     end
 
-    PollManager.add_messages_from @source
+    PollManager.add_messages_from(@source) do |m, o, e|
+      m.remove_label :unread
+      m
+    end
   end
 end