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 ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs