Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Need help with sorting "To" with hook
@ 2008-05-21  5:17 Emil Jensen
  2008-05-25  2:10 ` William Morgan
  0 siblings, 1 reply; 2+ messages in thread
From: Emil Jensen @ 2008-05-21  5:17 UTC (permalink / raw)


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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [sup-talk] Need help with sorting "To" with hook
  2008-05-21  5:17 [sup-talk] Need help with sorting "To" with hook Emil Jensen
@ 2008-05-25  2:10 ` William Morgan
  0 siblings, 0 replies; 2+ messages in thread
From: William Morgan @ 2008-05-25  2:10 UTC (permalink / raw)


Reformatted excerpts from lister.lists's message of 2008-05-20:
> 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 asusme you mean label, not sort...

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

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>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-25  2:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-21  5:17 [sup-talk] Need help with sorting "To" with hook Emil Jensen
2008-05-25  2:10 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox