Method: Client#shutdown
- Defined in:
- lib/client.rb
#shutdown(imap) ⇒ Object
If the gem is being used for local-lockbox mode, after fetching all emails, the process will go idle mode. If user send the interrupt command, it will call shutdown to disconnect the connection with imap server
202 203 204 205 206 207 208 209 |
# File 'lib/client.rb', line 202 def shutdown(imap) imap.idle_done imap.logout unless imap.disconnected? imap.disconnect @logger.info "#{$0} has ended (crowd applauds)" exit 0 end |