Revision 79a2d2a3
Added by Marc Dequènes almost 11 years ago
lib/cyborghood/imap.rb | ||
---|---|---|
|
||
when "BYE"
|
||
@need_reconnect = true
|
||
logger.debug "IMAP reconnection needed"
|
||
msg = "Disconnected from IMAP server"
|
||
msg += ", reconnection needed" unless @stop_mail_check
|
||
logger.debug msg
|
||
end
|
||
end
|
||
end
|
||
... | ... | |
|
||
begin
|
||
unless @imap.disconnected?
|
||
@imap.logout if @is_loggued
|
||
|
||
logger.debug "Disconnecting from IMAP server..."
|
||
@imap.logout if @is_loggued
|
||
@imap.disconnect
|
||
logger.debug "Disconnected from IMAP server"
|
||
end
|
||
rescue IOError
|
||
logger.debug "Already disconnected from IMAP server"
|
Also available in: Unified diff
[debug] clarify disconnection messages