> === Andrew Farrell schrieb am 2011-06-01 05:54: === < > I'm trying to add a before-poll.rb hook, but this appears not to be run. > At least, it is not running offlineIMAP and if I insert a divide-by-zero, > nothing explodes. To create a hook, you have to put the hook-name.rb file in the .sup/hooks folder, and it should be executed when the hook is called.
No need to go source diving. You've got a log-line in your before-poll.rb, so you should see it's activity in the log buffer. Just hit ; in inbox-mode, navigate to the line saying log-mode and hit <Enter> to view the log buffer. If your message shows up, the before-poll hook is executed, and does not work. Happy debugging (I used to know no Ruby as well when I started using sup, and it's still a foreign language to me) > - I'm inferring that "require 'sup' " is the equivalent of python's "from > sup import *" Yes, it is. Ruthard _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk