How to delete letters automatically with imaplib?
Ben Finney
ben+python at benfinney.id.au
Wed Aug 6 07:29:41 EDT 2014
elearn <elearn2014 at gmail.com> writes:
> and how to write the delete command with imaplib?
(Please don't top-post. Instead, compose your responses interleaved
<URL:https://en.wikipedia.org/wiki/Posting_style#Interleaved_style> so
the conversation is easier to follow in the message.)
I'm not familiar with the API of the ‘imaplib’ module. Start with
<URL:https://docs.python.org/3/library/imaplib.html> and remember that
it is a library designed to work intimately with the IMAP
command-response protocol.
If, instead, you wish to manipulate mailboxes without needing to know
much about the detailed features of the storage format, use the
<URL:https://docs.python.org/3/library/mailbox.html> ‘mailbox’ module
for that purpose.
--
\ “No matter how cynical you become, it's never enough to keep |
`\ up.” —Jane Wagner, via Lily Tomlin |
_o__) |
Ben Finney
More information about the Python-list
mailing list