From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Sun, 19 Aug 2007 18:30:26 -0700 Subject: [sup-talk] new in svn: hook system and polling hooks In-Reply-To: <1187484773-sup-6336@south> References: <1187484773-sup-6336@south> Message-ID: <1187573304-sup-2892@south> 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