Subject: [sup-talk] Need help with sorting "To" with hook

From: [email-masked] (Emil Jensen)
Date: Wed, 21 May 2008 15:17:27 +1000

Hi,

I love sup, and I'm using it mostly with a gmail account.
However, I can't find a hook to sort emails by the "To" field.
I just signed up to the Ruby mailing lists which are a complete mess.
I'm thinking of something like the:

"message.add_label "yahoo" if message.from.email =~ /@yahoo/"

hook already on the sup wiki, and I've tried and failed to change it to modify emails To @ruby.

Can anyone help me with this? It will probably only take someone familiar with the code about 5 seconds.

Thanks!

---

From: [email-masked] (William Morgan)
Date: Sat, 24 May 2008 19:10:31 -0700

> However, I can't find a hook to sort emails by the "To" field.

I asusme you mean label, not sort...

> to modify emails To @ruby.

What does your before-add-message hook look like? Something like this?

message.add_label "ruby" if message.to.email =~ /ruby-talk@/
-- 
William <wmorgan-sup at masanjin.net>