C
C
chrome1232020-11-01 12:02:52
Email
chrome123, 2020-11-01 12:02:52

How to decode received electronics in python?

Hello. Please tell me how to decode an email in python?
I receive letters using smtpd.
They come in this format.

{'credential_instance': None, 'mail_options': [], 'rcpt_options': []}
Receiving message from: ('0.'0.'0.'0', 47549)
Message addressed from: [email protected]
Message addressed to  : ['[email protected]']
Message : b'Date: Sun, 01 Nov 2020 11:51:03 UT\nSubject: =?UTF-8?B?VGl0bGU==?=\nReply-To: login\nTo: "=?UTF-8?B?bG9naW4yQGxvY2FsaG9zdA==?=" <[email protected]>\nMIME-Version: 1.0\nContent-Type: text/html; charset="UTF-8"\nContent-Transfer-Encoding: 8bit\nFrom: "=?UTF-8?B?YWRtaW40QG5hZm9ydW1lLm9yZy4==?=" <login>\nX-Priority: 3\n\nText\n'


Maybe there are libraries that normally parse the Date part. What would the parser not write.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question