diff options
author | James E. Blair <corvus@gnu.org> | 2019-06-09 10:05:11 -0700 |
---|---|---|
committer | James E. Blair <corvus@gnu.org> | 2019-06-09 10:07:14 -0700 |
commit | 3177ba26421b730bdf475fc2e991eef9ab9ef067 (patch) | |
tree | a7cce1756ccb5d6c50b1b56e1b24885ba683851f /email_assistant/plugins/general.py | |
parent | c44874cfa48bf00b83057033fc7800b35e157702 (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/general.py')
-rw-r--r-- | email_assistant/plugins/general.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/email_assistant/plugins/general.py b/email_assistant/plugins/general.py index c0517b8..e21274d 100644 --- a/email_assistant/plugins/general.py +++ b/email_assistant/plugins/general.py | |||
@@ -24,7 +24,7 @@ def get_events(msg): | |||
24 | log = logging.getLogger('assistant.marriott') | 24 | log = logging.getLogger('assistant.marriott') |
25 | for part in msg.walk(): | 25 | for part in msg.walk(): |
26 | if part.get_content_type() == 'text/html': | 26 | if part.get_content_type() == 'text/html': |
27 | soup = BeautifulSoup(part.get_payload(decode=True).decode('utf8'), 'html.parser') | 27 | soup = BeautifulSoup(part.get_payload(decode=True), 'html.parser') |
28 | 28 | ||
29 | start = end = location = None | 29 | start = end = location = None |
30 | for element in soup.descendants: | 30 | for element in soup.descendants: |