From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.87.8 with SMTP id k8cs60046fgb; Thu, 11 Mar 2010 07:59:42 -0800 (PST) Received: by 10.224.27.146 with SMTP id i18mr752804qac.12.1268323181687; Thu, 11 Mar 2010 07:59:41 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 26si262461qwa.58.2010.03.11.07.59.41; Thu, 11 Mar 2010 07:59:41 -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; dkim=neutral (body hash did not verify) header.i=@yahoo.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id F1C3E1588062; Thu, 11 Mar 2010 10:59:40 -0500 (EST) X-Greylist: delayed 401 seconds by postgrey-1.31 at rubyforge.org; Thu, 11 Mar 2010 10:54:25 EST Received: from web63906.mail.re1.yahoo.com (web63906.mail.re1.yahoo.com [69.147.97.121]) by rubyforge.org (Postfix) with SMTP id 5E22A18582E1 for ; Thu, 11 Mar 2010 10:54:25 -0500 (EST) Received: (qmail 52888 invoked by uid 60001); 11 Mar 2010 15:47:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1268322464; bh=58QvwZp3BAKPVQifjfc4NP+bdP0MHMxHIzq2/ioduj0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=IqHOv/Nl8eRTOmuB6AxWl2BSBn3kVUTVrPVm1HDPdPa8HRoCMd91tcej58JXqNnbtPt+jmXMNtf0xEoo9XToq+JRGSaruY6RUaxaUse4qLwUz8ZvgS3djELmTvxpjp+YT8HFzD9+2j8o/U1DY9DHyvba+iyVeIS+CAzpgrt6azs= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=4dSecgEQHCTVf2HAxfnXl7oTYswb85I4HilqF6N7NFCfWDIbfgdAGh2KNbSbvGK1fYHY3vouPcBe27xeGTo5AB5KcWyZbDZZS84pJ4CfBWcuwcgimAZKJkOQ4GzZI5VEbTXsOa93vPyTSS6AH3pS1HQcbxJUCDug2k7f2nu7PXU=; Message-ID: <79968.51859.qm@web63906.mail.re1.yahoo.com> X-YMail-OSG: lFeGsXYVM1kiWA3ovwKTbr8lwGiNYC1AZ_C88d3scDczLpt GIJdw2EnjqTNN.Zqwgngeb3UXgvxeJZzHbSZMWxcX1PXoeQO2A66hQlValPk N2rmrJiqP_b0fi60Z0qipQB7XYhaPWy3dgUy.zuuJ634KV4Ewhz9RFfheNBy Y3pjjJGLdIgFVtdORJMiK8KAbG1mOLzUGtlL6eF1R1eJjPXKoUKHpdXofCjb TXzwS6jB_cvfsYwpCunyQkbmNciO5FTPrsBdBMa33T.xQ_WCZ4.LnAEN7mTq ZB531h5x1WH24Imu1AnoeqJMGcdQ- Received: from [67.88.113.150] by web63906.mail.re1.yahoo.com via HTTP; Thu, 11 Mar 2010 07:47:43 PST X-Mailer: YahooMailRC/300.3 YahooMailWebService/0.8.100.260964 Date: Thu, 11 Mar 2010 07:47:43 -0800 (PST) From: Daren Lord To: sup-talk@rubyforge.org MIME-Version: 1.0 Subject: [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: , Content-Type: multipart/mixed; boundary="===============1355854467==" Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org --===============1355854467== Content-Type: multipart/alternative; boundary="0-2034389755-1268322463=:51859" --0-2034389755-1268322463=:51859 Content-Type: text/plain; charset=us-ascii All, Have been using sup for a couple months and now that I feel comfortable with it I want to start customizing it. I am trying to take certain emails and lump them into a thread so I can keep track of the history 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 message.add_label "report" message.add_label $1 end My add_label statements are working great, I just can't get the add_ref to work. I am not familiar with ruby at all, so I am hoping I am just missing something simple. Thanks. DLord --0-2034389755-1268322463=:51859 Content-Type: text/html; charset=us-ascii
All,

Have been using sup for a couple months and now that I feel comfortable with it I want to start customizing it.

I am trying to take certain emails and lump them into a thread so I can keep track of the history

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
    message.add_label "report"
    message.add_label $1
end

My add_label statements are working great, I just can't get the add_ref to work. I am not familiar with ruby at all, so I am hoping I am just missing something simple.

Thanks.

DLord

--0-2034389755-1268322463=:51859-- --===============1355854467== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk --===============1355854467==--