Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] New User Hooks Details
@ 2011-02-03 15:58 Philippe LeCavalier
  2011-02-03 23:01 ` Tero Tilus
  2011-02-03 23:48 ` Hamish D
  0 siblings, 2 replies; 6+ messages in thread
From: Philippe LeCavalier @ 2011-02-03 15:58 UTC (permalink / raw)
  To: sup-talk

I'm having a hard time using the hooks system.

I'm trying to add the 'AutoAddLabelsToNewMessages'. I've followed the wiki and created '~/.sup/hooks/before-add-message.rb' with a few hooks but sup isn't calling them before polling.

One bit of info that seems odd to me is when I issue 'sup -l' the hooks listed are nowhere to be found in the hooks folder yet they appear to be working. Is that normal?

ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
sup 0.12.1

sample hook:
#Mark Lists <lists> 
addressfile = File.open("/home/plecavalier/.sup/hooks/label.lists","r")
if ! addressfile.grep(/#{message.list_address}/).empty?
message.add_label :lists
end

contents of ~/.sup.hooks/label.lists

plecavalier@plc:~/.sup/hooks$ cat label.lists 
cups@easysw.com
samba@lists.samba.org
rsync@lists.samba.org
offlineimap-project@lists.alioth.debian.org
bind-users@lists.isc.org

The only thing I can think of is possibly setting the execute bit but I wanted to checking here prior.
-- 
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-02-05  3:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-03 15:58 [sup-talk] New User Hooks Details Philippe LeCavalier
2011-02-03 23:01 ` Tero Tilus
2011-02-03 23:48 ` Hamish D
2011-02-04  1:28   ` Antono Vasiljev
2011-02-05  2:15   ` Philippe LeCavalier
2011-02-05  2:54     ` Blake Sweeney

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