From b61f4ec0952fee62e73eee63d5605dad4c04cc3b Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Mon, 23 May 2016 17:23:53 -0400 Subject: [PATCH] Support outlook 2007/2010 running in en-us locale My American English copy of outlook 2007 is using inches in the reply separator rather than centimeters. The separator is otherwise Identical. What a strange thing to localize. I'm guessing it uses whatever it thinks the preferred units for page margins are. --- talon/html_quotations.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/talon/html_quotations.py b/talon/html_quotations.py index d56ec93..1af78ac 100644 --- a/talon/html_quotations.py +++ b/talon/html_quotations.py @@ -86,9 +86,12 @@ def cut_gmail_quote(html_message): def cut_microsoft_quote(html_message): ''' Cuts splitter block and all following blocks. ''' splitter = html_message.xpath( - #outlook 2007, 2010 + #outlook 2007, 2010 (international) "//div[@style='border:none;border-top:solid #B5C4DF 1.0pt;" "padding:3.0pt 0cm 0cm 0cm']|" + #outlook 2007, 2010 (american) + "//div[@style='border:none;border-top:solid #B5C4DF 1.0pt;" + "padding:3.0pt 0in 0in 0in']|" #windows mail "//div[@style='padding-top: 5px; " "border-top-color: rgb(229, 229, 229); "