]> git.cworth.org Git - sup/blobdiff - lib/sup/poll.rb
bugfix:relay event when new message is added to index
[sup] / 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])