From: Naveen Nathan Date: Fri, 25 Oct 2013 00:14:39 +0000 (+1100) Subject: explicit import of Address, Envelope and fixed the tuple identifiers X-Git-Tag: 0.11~3^2~14 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=32cd1242f23f1771df4d0651a43dbab5bcfdc345;p=imapclient.git explicit import of Address, Envelope and fixed the tuple identifiers --- diff --git a/imapclient/response_parser.py b/imapclient/response_parser.py index 796d47f..6d74446 100644 --- a/imapclient/response_parser.py +++ b/imapclient/response_parser.py @@ -23,7 +23,7 @@ xrange = six.moves.xrange from .fixed_offset import FixedOffset from .response_lexer import TokenSource -from .response_types import * +from .response_types import Envelope, Address try: import imaplib2 as imaplib @@ -206,8 +206,8 @@ def _convert_ENVELOPE(envelope_response, normalise_times=True): in_reply_to = envelope_response[8] message_id = envelope_response[9] - return Envelope(dt, subject, *addresses, \ - In_Reply_To=in_reply_to, Message_Id=message_id) + return Envelope(dt, subject, *addresses, + in_reply_to=in_reply_to, message_id=message_id) def atom(src, token): if token == '(':