Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] hook with external file ref
@ 2011-03-03 13:26 Philippe LeCavalier
  2011-03-03 17:35 ` David J. Hamilton
  0 siblings, 1 reply; 6+ messages in thread
From: Philippe LeCavalier @ 2011-03-03 13:26 UTC (permalink / raw)
  To: sup-talk

From: Philippe LeCavalier <support@plecavalier.com>
To: sup-talk <sup-talk@rubyforge.ord>
Cc: 
Bcc: 
Subject: hook with external file ref

addressfile = File.open("/home/user/path/addressfile","r")
if ! addressfile.grep(/#{message.from.email}/).empty?
  message.add_label :somelabel
end

In the wiki it states "which contains one e-mail address per line". I'm just wondering what I would have to change in the code in order to list just the domain.
-- 
Thanks,
Phil
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


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

end of thread, other threads:[~2011-03-10 14:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-03 13:26 [sup-talk] hook with external file ref Philippe LeCavalier
2011-03-03 17:35 ` David J. Hamilton
2011-03-03 19:12   ` Philippe LeCavalier
2011-03-04 14:06     ` Philippe LeCavalier
     [not found]       ` <1299618530-sup-9754@nyx.local>
2011-03-09  2:13         ` Philippe LeCavalier
2011-03-10 14:13           ` Philippe LeCavalier

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