summaryrefslogtreecommitdiff
path: root/email_assistant/plugins/marriott.py
diff options
context:
space:
mode:
authorJames E. Blair <corvus@gnu.org>2019-06-09 10:05:11 -0700
committerJames E. Blair <corvus@gnu.org>2019-06-09 10:07:14 -0700
commit3177ba26421b730bdf475fc2e991eef9ab9ef067 (patch)
treea7cce1756ccb5d6c50b1b56e1b24885ba683851f /email_assistant/plugins/marriott.py
parentc44874cfa48bf00b83057033fc7800b35e157702 (diff)
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.
Diffstat (limited to 'email_assistant/plugins/marriott.py')
-rw-r--r--email_assistant/plugins/marriott.py2
1 files changed, 1 insertions, 1 deletions
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):
43 events = [] 43 events = []
44 for part in msg.walk(): 44 for part in msg.walk():
45 if part.get_content_type() == 'text/html': 45 if part.get_content_type() == 'text/html':
46 soup = BeautifulSoup(part.get_payload(decode=True).decode('utf8'), 'html.parser') 46 soup = BeautifulSoup(part.get_payload(decode=True), 'html.parser')
47 summary = soup.find_all('table')[7].a.string.strip() 47 summary = soup.find_all('table')[7].a.string.strip()
48 location = soup.find_all('table')[9].a.string.strip() 48 location = soup.find_all('table')[9].a.string.strip()
49 start = (soup.find('th', string=re.compile('Check-In:')). 49 start = (soup.find('th', string=re.compile('Check-In:')).