diff --git a/README.md b/README.md index 8498f85..a6c1b36 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Step 1: Import email reply parser package from email_reply_parser import EmailReplyParser ``` -Step 2: Provide email message as type string using parse_reply class method. +Step 2: Provide email message as type string using parse_reply. ```python parser = EmailReplyParser(language='en') diff --git a/email_reply_parser/__init__.py b/email_reply_parser/__init__.py index 53a4716..8eed482 100644 --- a/email_reply_parser/__init__.py +++ b/email_reply_parser/__init__.py @@ -72,7 +72,7 @@ def warnings(self): r'(CAUTION:|NOTICE:|Disclaimer:|Confidentiality Notice:|Please do not reply|This electronic mail' r'|The information contained' r'|The information (provided|transmitted|contained)? (with)?in this (e[\-]?mail|message|communication)' - r'|This electronic (e[\-]?mail|message|communication) (including attachments) may contain confidential' + r'|This electronic (e[\-]?mail|message|communication) \(including( | \n)attachments\) may contain confidential' r'|This (e[\-]?mail|message|communication) is confidential' r'|The content[s]? of this (e[\-]?mail|message|communication)' r'|This (e[\-]?mail|message|communication) may contain' @@ -86,7 +86,7 @@ def warnings(self): r'|This (e[\-]?mail|message|communication) with its contents' r'|If you have received this (e[\-]?mail|message|communication) in error' r'|The [cC]ontents are confidential' - r'|Please consider the environment before printing this (e[\-]?mail|message|communication)) [a-zA-Z0-9:;.,?!()@&/\'\"\“\” \-]*', + r'|Please consider the environment before printing this (e[\-]?mail|message|communication)) ([a-zA-Z0-9:;.,?!()@&/\'\"\“\” \-]|(?