From: William Morgan Date: Tue, 18 Aug 2009 02:28:35 +0000 (-0700) Subject: bugfix:relay event when new message is added to index X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=0830af54e3a1383d9c5112657a070bb54de976b5;p=sup bugfix:relay event when new message is added to index made this fancy method, and then i forgot to use it! --- 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])