]> git.cworth.org Git - sup/commitdiff
bugfix:relay event when new message is added to index
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Tue, 18 Aug 2009 02:28:35 +0000 (19:28 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Tue, 18 Aug 2009 02:28:59 +0000 (19:28 -0700)
made this fancy method, and then i forgot to use it!

lib/sup/poll.rb

index c348fb2296cf152f408d72360411c2537cd7716f..46fe5c5ed2cc700c294e92a2a802be47fdd754cd 100644 (file)
@@ -107,7 +107,7 @@ EOS
             end
           else
             yield "Found new message at #{m.source_info} with labels #{m.labels.to_a * ','}"
-            Index.add_message m
+            add_new_message m
             num += 1
             from_and_subj << [m.from && m.from.longname, m.subj]
             if (m.labels & [:inbox, :spam, :deleted, :killed]) == Set.new([:inbox])