diff --git a/email_reply_parser/__init__.py b/email_reply_parser/__init__.py index 063f65b..f7df390 100644 --- a/email_reply_parser/__init__.py +++ b/email_reply_parser/__init__.py @@ -40,7 +40,7 @@ class EmailMessage(object): QUOTE_HDR_REGEX = re.compile('On.*wrote:$') QUOTED_REGEX = re.compile(r'(>+)') HEADER_REGEX = re.compile(r'^\*?(From|Sent|To|Subject):\*? .+') - _MULTI_QUOTE_HDR_REGEX = r'(?!On.*On\s.+?wrote:)(On\s(.+?)wrote:)' + _MULTI_QUOTE_HDR_REGEX = r'(?!On.*On\s.{1,100}?wrote:)(On\s(.{1,100}?)wrote:)' MULTI_QUOTE_HDR_REGEX = re.compile(_MULTI_QUOTE_HDR_REGEX, re.DOTALL | re.MULTILINE) MULTI_QUOTE_HDR_REGEX_MULTILINE = re.compile(_MULTI_QUOTE_HDR_REGEX, re.DOTALL)