Fix IMAP4_Tunnel to work with imaplib2

* IMAP4_Tunnel constructor should support base-class arguments, in
  order to support the timeout argument.

* IMAP4_Tunnel needs to store the member IMAP4.host, which is normally
  done in IMAP4.open().

* Update IMAP4_Tunnel.read() and IMAP4_Tunnel.send().  We turn on
  nonblocking mode for these sockets, so we can return immediately
  with whatever data is available.

Signed-off-by: Ethan Glasser-Camp <ethan@betacantrips.com>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Ethan Glasser-Camp
2011-04-13 04:52:18 -04:00
committed by Nicolas Sebrecht
parent fdf22400b1
commit 9e734006f6
2 changed files with 34 additions and 12 deletions

View File

@ -22,6 +22,8 @@ Changes
Bug Fixes
---------
* Fix IMAP4 tunnel with imaplib2.
Pending for the next major release
==================================