From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.87.8 with SMTP id k8cs131680fgb; Sun, 14 Mar 2010 00:55:08 -0800 (PST) Received: by 10.229.215.1 with SMTP id hc1mr212176qcb.76.1268556907967; Sun, 14 Mar 2010 00:55:07 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 37si7020933qyk.20.2010.03.14.00.55.07; Sun, 14 Mar 2010 00:55:07 -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 3F16F18582E2; Sun, 14 Mar 2010 04:55:07 -0400 (EDT) Received: from kuovi.tilus.net (kuovi.tilus.net [80.68.89.168]) by rubyforge.org (Postfix) with ESMTP id 4AEA518582EC for ; Sun, 14 Mar 2010 04:54:29 -0400 (EDT) Received: by kuovi.tilus.net (Postfix, from userid 1000) id 748216011; Sun, 14 Mar 2010 10:54:28 +0200 (EET) From: Tero Tilus To: sup-talk In-reply-to: <79968.51859.qm@web63906.mail.re1.yahoo.com> References: <79968.51859.qm@web63906.mail.re1.yahoo.com> Date: Sun, 14 Mar 2010 10:54:28 +0200 Message-Id: <1268556523-sup-2164@tilus.net> User-Agent: Sup/git Subject: Re: [sup-talk] before-add-message hook no creating threads 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 Daren Lord, 2010-03-11 17:47: > I am trying to take certain emails and lump them into a thread so I > can keep track of the history Why not use labels? That is exactly what labels are for. Isn't it? > Here is the code from my before-add-message.rb hook: > > if message.subj =~ /^\[ENV (PROD|TEST|DEV)\] Hourly ADDM report for instance (.*)/ > message.add_ref $1 + "ADDM REPORTS - " + $2 Sup expects ref to be a message id. In principle that should work, but the expectation could bite you here. Have you tried using id from an existing message? > message.add_label "report" > message.add_label $1 > end -- Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/ _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk