[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-talk] Hook before-add-message, any way to know if this message is in a topic I replied to ?
Wael Nasreddine, 2010-12-20 13:45:
> I would like to see at glance emails in topic I replied to
You'd basically check all the messages in the same thread with the
received mail and see if you appear in from. I think it could look
something like
ts = ThreadSet.new(...something...)
ts.load_thread_for_message message
participated = ts.thread_for(message).authors.include? 'my@email'
message.add_label :inbox if participated
More advanced suppers please step in and correct.
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk