For patterns like this '---- On {date} {name} {mail} wrote ---- '

This commit is contained in:
Simon
2015-04-14 18:52:45 +02:00
parent df3338192a
commit 105d16644d

View File

@@ -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