From 0830af54e3a1383d9c5112657a070bb54de976b5 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Mon, 17 Aug 2009 19:28:35 -0700 Subject: [PATCH] bugfix:relay event when new message is added to index made this fancy method, and then i forgot to use it! --- lib/sup/poll.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index c348fb2..46fe5c5 100644 --- a/lib/sup/poll.rb +++ b/lib/sup/poll.rb @@ -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]) -- 2.43.0