imapclient
imapclient copied to clipboard
An easy-to-use, Pythonic and complete IMAP client library
``` DEBUG:imapclient.imaplib:< b'* 1 FETCH (UID 27718 ENVELOPE ("Mon, 14 Mar 2022 04:26:15 +0000" "Folder shared with you==REDACTED=="" (("==REDACTED==" NIL "drive-shares-dm-noreply" "google.com")) (("==REDACTED==" NIL "drive-shares-dm-noreply" "google.com")) (("==REDACTED==" NIL "==REDACTED==" "==REDACTED=="))...
Hi there, thanks for a great lib! When starting to play with it I encountered an issue: when intentionally introducing an error (here absence of starttls on an account that...
ESORT and ESEARCH are extensions to SORT and SEARCH allowing users to also get the number of messages (COUNT) matching their criteria, the MIN and MAX ids of those messages,...
While trying to find a good way to detect when there is no network connection while in a idle_check() loop, I discovered that if the network connection to the IMAP...
Most popular IMAP servers support the `ESEARCH` capability (https://tools.ietf.org/search/rfc4731). There are probably some small changes to IMAPClient required to make it work. See also the discussion in #227 .
imapclient.exceptions.ProtocolError: Server replied with a response that violates the IMAP protocol
This seems like a duplicate of the now-closed #351. I've been able to reproduce this connected to a Dovecot server using a minimal example based on my actual code. In...
When using tools such as mypy or type checking in vscode, type annotations would be useful. Missing type annotations can also lead to errors when using strict type checking.
Sadly, I don't have access anymore to the email that caused it, but rather than an IndexError, it would be better to raise some kind of MalformedEmailException or similar. This...
The following code: ``` from imapclient import IMAPClient # context manager ensures the session is cleaned up with IMAPClient(host="imap-mail.outlook.com") as client: client.login('[email protected]', 'password') client.select_folder('INBOX') # search criteria are passed in...
Here is a compilation of up-to-date RFCs related to IMAP: * 2177 - IDLE Extension: https://tools.ietf.org/html/rfc2177 * 2342 - NAMESPACE Extension: https://tools.ietf.org/html/rfc2342 * 2971 - ID Extension: https://tools.ietf.org/html/rfc2971 * 3348...