Python Imaplib Download Gmail Text Without Downloading The Full Attachment
I am using 'imaplib' in python to fetch the email from a Gmail account. But I just want to know the content of the email, the title of the attachment, but do not need to download t
Solution 1:
Just replace BODY[0]
with (BODY[1])
.
Post a Comment for "Python Imaplib Download Gmail Text Without Downloading The Full Attachment"