Update read_unread_emails.py
I added the closing ')' on line 27
This commit is contained in:
parent
bec2154948
commit
51a1b44774
|
@ -24,7 +24,7 @@ def process_mailbox(M):
|
||||||
local_date = datetime.datetime.fromtimestamp(email.utils.mktime_tz(date_tuple))
|
local_date = datetime.datetime.fromtimestamp(email.utils.mktime_tz(date_tuple))
|
||||||
print("{}: {}".format(header, local_date.strftime("%a, %d %b %Y %H:%M:%S")))
|
print("{}: {}".format(header, local_date.strftime("%a, %d %b %Y %H:%M:%S")))
|
||||||
else:
|
else:
|
||||||
print('{}: {}'.format(header, hdr)
|
print('{}: {}'.format(header, hdr))
|
||||||
# with code below you can process text of email
|
# with code below you can process text of email
|
||||||
# if msg.is_multipart():
|
# if msg.is_multipart():
|
||||||
# for payload in msg.get_payload():
|
# for payload in msg.get_payload():
|
||||||
|
|
Loading…
Reference in New Issue