[sup-talk] [PATCH] Fix for before-add-message hook

Marcus Williams marcus-sup at bar-coded.net
Tue Nov 6 05:25:04 EST 2007


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 


More information about the sup-talk mailing list