From 3177ba26421b730bdf475fc2e991eef9ab9ef067 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sun, 9 Jun 2019 10:05:11 -0700 Subject: Add support for Delta Also add an undocumented mailbox driver for a directory of files for ease of testing (this could probably become a maildir driver with a bit more work). Remove unecessary decode calls from the message traversal. --- email_assistant/plugins/marriott.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'email_assistant/plugins/marriott.py') diff --git a/email_assistant/plugins/marriott.py b/email_assistant/plugins/marriott.py index 52597cd..1f2abab 100644 --- a/email_assistant/plugins/marriott.py +++ b/email_assistant/plugins/marriott.py @@ -43,7 +43,7 @@ class Plugin(plugin.Plugin): events = [] for part in msg.walk(): if part.get_content_type() == 'text/html': - soup = BeautifulSoup(part.get_payload(decode=True).decode('utf8'), 'html.parser') + soup = BeautifulSoup(part.get_payload(decode=True), 'html.parser') summary = soup.find_all('table')[7].a.string.strip() location = soup.find_all('table')[9].a.string.strip() start = (soup.find('th', string=re.compile('Check-In:')). -- cgit v1.2.3