From mboxrd@z Thu Jan 1 00:00:00 1970 From: kevinr@free-dissociation.com (Kevin Riggle) Date: Sun, 16 Aug 2009 17:47:09 -0400 Subject: [sup-talk] [PATCH] Add an after-add-message hook Message-ID: <1250459229-4500-1-git-send-email-kevinr@free-dissociation.com> From: Kevin Riggle I want to do some unrelated processing on each message I receive, but I don't want to block the message being added to the index. This patch adds a hook which runs /after/ the message is added to the index. --- lib/sup/poll.rb | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index 8a9d218..e4b7e02 100644 --- a/lib/sup/poll.rb +++ b/lib/sup/poll.rb @@ -11,6 +11,12 @@ Variables: message: the new message EOS + HookManager.register "after-add-message", < m_new end rescue SourceError => e Redwood::log "problem getting messages from #{source}: #{e.message}" -- 1.6.0.4