* [sup-devel] [PATCH] before-add-message now only fires for new messages
@ 2010-04-16 23:20 Eric Sherman
0 siblings, 0 replies; only message in thread
From: Eric Sherman @ 2010-04-16 23:20 UTC (permalink / raw)
To: sup-devel
---
lib/sup/poll.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb
index 582cd4d..02aa0d3 100644
--- a/lib/sup/poll.rb
+++ b/lib/sup/poll.rb
@@ -130,6 +130,7 @@ EOS
end
else
yield "Found new message at #{m.source_info} with labels #{m.labels.to_a * ','}"
+ HookManager.run "before-add-message", :message => m
add_new_message m
loaded_labels.merge m.labels
num += 1
@@ -173,7 +174,6 @@ EOS
m.labels.delete :unread if m.source_marked_read? # preserve read status if possible
m.labels.each { |l| LabelManager << l }
- HookManager.run "before-add-message", :message => m
yield m
end
rescue SourceError => e
--
1.6.6
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-17 0:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-16 23:20 [sup-devel] [PATCH] before-add-message now only fires for new messages Eric Sherman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox