]> khamidou — GitHub mirrors - imapclient.git/commit
Added an idle function and changed script to use imaplib2 if available.
authorJohannes Heckel <stone.pixel@gmail.com>
Wed, 23 Mar 2011 00:00:36 +0000 (00:00 +0000)
committerJohannes Heckel <stone.pixel@gmail.com>
Wed, 23 Mar 2011 00:00:36 +0000 (00:00 +0000)
commit94a9110a14dd272069eb683fdd533a453b8274b6
treef9898aa39900fdd7d75e3a3535103bc0db74cf9b
parent887cee16ce0c8c49ca923ab78fc54ff7fdf64c02
Added an idle function and changed script to use imaplib2 if available.

Added example demonstrating use of idle function.

Switched the tag and keyword args when using imaplib2's _command_complete as
it expects (rqb, kw) rather than (kw, rqb).

imaplib2's untagged_responses seems to be in a list format rather than the
dictionary format imaplib uses. Now if imaplib2 is being used untagged_responses
is automatically converted to the dictionary format using a simple function.
Not sure if this is the ideal solution though.

--HG--
branch : idle
imapclient/examples/idle_example.py [new file with mode: 0644]
imapclient/imapclient.py
imapclient/response_parser.py