# File bin/rsendmail.rb, line 71def with_db(name)
require 'gdbm'begin
db = nilbegin
db = GDBM::open(File.join("/home/matt/.rfilter/var", name), 0600)
rescue Errno::EWOULDBLOCK
# FIXME: only wait so long, then defer
sleep(2)
retryendyield db
ensure
db.close unless db.nil?
endend