[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-talk] Warning with mainline version



Hi. I downloaded git mainline version after using 0.11 for a long time. 
I'm getting the following warning every time the before poll hook is
executed:
.sup/hooks/before-poll.rb:2: warning: method redefined; discarding old
offlineimap_run

This is waht I have in before-poll.rb:
# http://sup.rubyforge.org/wiki/wiki.pl?Hooks
def offlineimap_run()
  cmd = "offlineimap -o -l ~/.offlineimap.log"
  `#{cmd} 2>&1`
end

if (@last_fetch || Time.at(0)) < Time.now - 120 
  say "Running offlineimap..."
  log offlineimap_run()
  say "Finished offlineimap."
end
@last_fetch = Time.now

I'm really bad with ruby, can somebody help me to get rid of this
warning?

TIA,
Mariano
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk