From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.218.138 with SMTP id hq10cs61889icb; Mon, 20 Dec 2010 05:24:12 -0800 (PST) Received: by 10.151.27.9 with SMTP id e9mr6606748ybj.229.1292851451658; Mon, 20 Dec 2010 05:24:11 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id x6si7516842qcq.205.2010.12.20.05.24.11; Mon, 20 Dec 2010 05:24:11 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 229F8167831F; Mon, 20 Dec 2010 08:24:11 -0500 (EST) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 726C71858267 for ; Mon, 20 Dec 2010 08:12:53 -0500 (EST) Received: by kuovi.tilus.net (Postfix, from userid 1000) id CE68F6016; Mon, 20 Dec 2010 15:12:52 +0200 (EET) From: Tero Tilus To: sup-talk In-reply-to: <1292845256-sup-6025@Phoenix> References: <1292845256-sup-6025@Phoenix> Date: Mon, 20 Dec 2010 15:12:52 +0200 Message-Id: <1292846110-sup-9522@tilus.net> User-Agent: Sup/git Subject: Re: [sup-talk] Hook before-add-message, any way to know if this message is in a topic I replied to ? X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org 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