Merge pull request #58 from mailgun/sergey/52

fixes mailgun/talon#52
This commit is contained in:
Sergey Obukhov
2015-09-18 04:48:50 -07:00
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
<style><!--

View File

@@ -264,7 +264,7 @@ RE_REPLY = re.compile(r"^Hi\. I am fine\.\s*\n\s*Thanks,\s*\n\s*Alex\s*$")
def extract_reply_and_check(filename):
f = open(filename)
msg_body = f.read().decode("utf-8")
msg_body = f.read()
reply = quotations.extract_from_html(msg_body)
h = html2text.HTML2Text()