# File lib/mail_room/mailbox_watcher.rb, line 25 def run @running = true connection.on_new_message do |message| @mailbox.deliver(message) end self.watching_thread = Thread.start do while(running?) do connection.wait end end watching_thread.abort_on_exception = true end