From: Tero Tilus <tero@tilus.net>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] Hook before-add-message, any way to know if this message is in a topic I replied to ?
Date: Mon, 20 Dec 2010 15:12:52 +0200 [thread overview]
Message-ID: <1292846110-sup-9522@tilus.net> (raw)
In-Reply-To: <1292845256-sup-6025@Phoenix>
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
next prev parent reply other threads:[~2010-12-20 13:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 11:45 Wael Nasreddine
2010-12-20 13:12 ` Tero Tilus [this message]
2010-12-23 12:04 ` Wael Nasreddine
2011-01-03 20:46 ` Tero Tilus
2011-01-03 21:02 ` Wael Nasreddine
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=1292846110-sup-9522@tilus.net \
--to=tero@tilus.net \
--cc=sup-talk@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