[Tutor] Python IMAP library

Cameron Simpson cs at cskk.id.au
Sun Oct 17 19:17:52 EDT 2021


On 18Oct2021 00:09, Alan Gauld <alan.gauld at yahoo.co.uk> wrote:
>On 17/10/2021 16:40, Julius Hamilton wrote:
>> Does anyone know what my options are for retrieving the email body of 
>> a specific email using this library?
>
>Are you sure you need imap? Could you use the email module instead?
>It seems to be a higher level library and more in tune with your
>requirements.

The email module's great for representing a message _once you have it_.

Julius probably needs the imaplib module to obtain the message, if it is 
only available on an IMAP server. He can then use the email module to 
parse the message text he gets back from a search.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Tutor mailing list