From: Daren Lord <dlordxorso@yahoo.com>
To: sup-talk@rubyforge.org
Subject: [sup-talk] before-add-message hook no creating threads
Date: Thu, 11 Mar 2010 07:47:43 -0800 (PST) [thread overview]
Message-ID: <79968.51859.qm@web63906.mail.re1.yahoo.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 657 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 955 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk
next reply other threads:[~2010-03-11 15:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-11 15:47 Daren Lord [this message]
2010-03-14 8:54 ` Tero Tilus
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=79968.51859.qm@web63906.mail.re1.yahoo.com \
--to=dlordxorso@yahoo.com \
--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