Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] Fix for before-add-message hook
@ 2007-11-06 10:25 Marcus Williams
  2007-11-07  1:56 ` William Morgan
  0 siblings, 1 reply; 7+ messages in thread
From: Marcus Williams @ 2007-11-06 10:25 UTC (permalink / raw)


Hi -

Last one for now. This fixes the hook for filtering messages so that
messages you tag with spam/killed/deleted in the hook dont get
displayed by the inbox.

Just to confirm something: if you want to tag using one of these
labels you need to use the ruby symbol in the hook :spam, :killed and
:deleted

Eg:

message.add_label :spam if message.raw_header =~ /X-Spam-Flag: YES/

Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before-add-message-hook
Type: application/octet-stream
Size: 1117 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071106/07ad0c18/attachment.obj 


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-07 18:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-06 10:25 [sup-talk] [PATCH] Fix for before-add-message hook Marcus Williams
2007-11-07  1:56 ` William Morgan
2007-11-07 16:06   ` Marcus Williams
2007-11-07 16:34     ` Marcus Williams
2007-11-07 17:35       ` William Morgan
2007-11-07 17:41         ` William Morgan
2007-11-07 18:38         ` Christopher Warrington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox