From 105d16644de1dbb526752f3972ea547dfee8460b Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 14 Apr 2015 18:52:45 +0200 Subject: [PATCH] For patterns like this '---- On {date} {name} {mail} wrote ---- ' --- talon/quotations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talon/quotations.py b/talon/quotations.py index ba4ac16..28914f2 100644 --- a/talon/quotations.py +++ b/talon/quotations.py @@ -23,7 +23,7 @@ log = logging.getLogger(__name__) RE_FWD = re.compile("^[-]+[ ]*Forwarded message[ ]*[-]+$", re.I | re.M) RE_ON_DATE_SMB_WROTE = re.compile( - u'(-*[ ]?({0})[ ].*({1})(.*\n){{0,2}}.*({2}):)'.format( + u'(-*[ ]?({0})[ ].*({1})(.*\n){{0,2}}.*({2}):?-*)'.format( # Beginning of the line u'|'.join(( # English