[sup-talk] new in svn: hook system and polling hooks

William Morgan wmorgan-sup at masanjin.net
Sun Aug 19 21:30:26 EDT 2007


Excerpts from William Morgan's message of Sat Aug 18 18:03:57 -0700 2007:
> Future work:
> Allow sharing of information between successive invocations via instance
> variables

Ok, this is in. Here's how I'm handling fetchmail invocation. In
hooks/before-poll.rb:

  if (@last_fetchmail_time || Time.at(0)) < Time.now - 60
    say "Running fetchmail..."
    system "fetchmail >& /dev/null"
  end
  @last_fetchmail_time = Time.now


-- 
William <wmorgan-sup at masanjin.net>


More information about the sup-talk mailing list