]> khamidou — GitHub mirrors - imapclient.git/commit
New command sending infrastructure
authorMenno Smits <menno@freshfoo.com>
Tue, 18 Aug 2015 11:29:26 +0000 (23:29 +1200)
committerMenno Smits <menno@freshfoo.com>
Tue, 18 Aug 2015 11:29:26 +0000 (23:29 +1200)
commitb91a4bc4af25b75658c0c02a00c0aa07dc643e70
treeb39361ba28067fe88e4a6e5df681b5f960dab83f
parent224d0e337c40b432e72a22b9a3bd3e1ece08d5ed
New command sending infrastructure

Implemented the _raw_command method which largely works around imaplib
for sending commands. It will automatically use literals when 8-bit
data must be sent and supports abitrary numbers of literals (imaplib
only supports sending a single literal and it's awkward to do
so). This is especially critical for correctly allowing complex search
queries that may involve multiple 8-bit criteria.

The search, sort, thread and gmail_search methods now all use the new
infrastructure. Soon, some version of _raw_command will be become the
only way that IMAPClient sends commands. This work also paves the way
for removing the dependency on imaplib.

This work is not yet complete. A number of test and documentation
updates are still required.
imapclient/imapclient.py
imapclient/livetest.py
imapclient/test/test_imapclient.py
imapclient/test/testable_imapclient.py