[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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