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/united.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/united.py')
-rw-r--r-- | email_assistant/plugins/united.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/email_assistant/plugins/united.py b/email_assistant/plugins/united.py index 0b33cd9..38de3e2 100644 --- a/email_assistant/plugins/united.py +++ b/email_assistant/plugins/united.py | |||
@@ -60,7 +60,7 @@ class Plugin(plugin.Plugin): | |||
60 | events = [] | 60 | events = [] |
61 | for part in msg.walk(): | 61 | for part in msg.walk(): |
62 | if part.get_content_type() == 'text/html': | 62 | if part.get_content_type() == 'text/html': |
63 | soup = BeautifulSoup(part.get_payload(decode=True).decode('utf8'), 'html.parser') | 63 | soup = BeautifulSoup(part.get_payload(decode=True), 'html.parser') |
64 | # confirmation_number = soup.find(class_="eTicketConfirmation").string | 64 | # confirmation_number = soup.find(class_="eTicketConfirmation").string |
65 | 65 | ||
66 | index = 0 | 66 | index = 0 |