Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75793

Re: How to delete letters automatically with imaplib?

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: How to delete letters automatically with imaplib?
Date 2014-08-06 21:29 +1000
References <53E1EF26.4020508@gmail.com> <85d2ceasjp.fsf@benfinney.id.au> <53E20F36.70508@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12697.1407324613.18130.python-list@python.org> (permalink)

Show all headers | View raw


elearn <elearn2014@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to delete letters automatically with imaplib? Ben Finney <ben+python@benfinney.id.au> - 2014-08-06 21:29 +1000

csiph-web