On Sun, May 30, 2021 at 1:04 AM hw <h...@adminart.net> wrote: > > On 5/28/21 2:36 AM, boB Stepp wrote:
> > <quote> > > Just as SMTP is the protocol for sending email, the Internet Message > > Access Protocol (IMAP) specifies how to communicate with an email > > provider’s server to retrieve emails sent to your email address. > > Python comes with an imaplib module, but in fact the third-party > > imapclient module is easier to use. This chapter provides an > > introduction to using IMAPClient; the full documentation is at > > http://imapclient.readthedocs.org/. > > > > The imapclient module downloads emails from an IMAP server in a rather > > complicated format. Most likely, you’ll want to convert them from this > > format into simple string values. The pyzmail module does the hard job > > of parsing these email messages for you. You can find the complete > > documentation for PyzMail at http://www.magiksys.net/pyzmail/. > > > > Install imapclient and pyzmail from a Terminal window. Appendix A has > > steps on how to install third-party modules. > > </quote> > I don't know which imaplib the author uses; the imaplib I found > definitely doesn't give uids of the messages, contrary to the example > he's giving. Look at the above three paragraphs quoted from my original response. The author is using *imapclient* and *pyzmail* as the author indicates. boB Stepp -- https://mail.python.org/mailman/listinfo/python-list