From: Eric Sherman <hyperbolist@gmail.com>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] [PATCH] before-add-message now only fires for new messages
Date: Fri, 16 Apr 2010 19:20:04 -0400 [thread overview]
Message-ID: <1271459926-sup-1259@changeling.local> (raw)
---
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
reply other threads:[~2010-04-17 0:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1271459926-sup-1259@changeling.local \
--to=hyperbolist@gmail.com \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox