Project

General

Profile

« Previous | Next » 

Revision 6ee45f3c

Added by Marc Dequènes over 14 years ago

  • ID 6ee45f3c1549a45edabed46d8003f25a92c165dc

[fix] repaired IMAP IDLE DONE

View differences:

lib/cyborghood/imap.rb
@idle_mode = false
get_tagged_response @idle_tag
begin
return get_tagged_response @idle_tag
rescue
end
end
def idle?
......
end
end
sleep(1) until @stop_mail_check
p idle_done
# TODO: ensure all thread for IDLE processing have finished before closing the connection
@imap.idle_done
end
rescue SocketError, Net::IMAP::NoResponseError => e
logger.warn "IMAP or Network error: " + e.message

Also available in: Unified diff