Skip to content
Permalink
Browse files

Decode message when fetching for send-later.

  • Loading branch information...
lamby committed Sep 26, 2019
1 parent 86cecbe commit 1f148e32d5caa6a468dbfcf821afcfd7193b703d
Showing with 3 additions and 1 deletion.
  1. +3 −1 tickle-me-email
@@ -208,7 +208,9 @@ class Command:
self.connect_smtp()

uid = self.get_uid(idx)
msg = email.message_from_string(self.fetch(idx, "(RFC822)")[1])
msg = email.message_from_string(
self.fetch(idx, "(RFC822)")[1].decode("utf-8")
)

# Don't reveal the original date
del msg["date"]

0 comments on commit 1f148e3

Please sign in to comment.
You can’t perform that action at this time.