Imap constantly connection with events

Can i using net/imap keep the connection constantly and react to the
occurrence of a new email?
and how ?

···

--
Posted via http://www.ruby-forum.com/.