Subject: [sup-talk] before-add-message hook no creating threads

From: Daren Lord <[email-masked]>
Date: Thu, 11 Mar 2010 07:47:43 -0800 (PST)

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

_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk

---

From: Tero Tilus <[email-masked]>
Date: Sun, 14 Mar 2010 10:54:28 +0200

> can keep track of the history

Why not use labels?  That is exactly what labels are for.  Isn't it?

>     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?

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-talk