Skip to content

Commit 6cf15f9

Browse files
authored
Merge pull request #47 from atc0m/en-signature
En signature
2 parents cdd4734 + 61c53b0 commit 6cf15f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

email_reply_parser/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def warnings(self):
101101
f'|{sentence_start}Emails{space}are{space}not{space}secure'
102102
f'|{sentence_start}To make{space}sure{space}you{space}continue{space}to{space}receive'
103103
f'|{sentence_start}Please{space}choose{space}one{space}of{space}the{space}options{space}below'
104-
f'|{sentence_start}Please{space}consider{space}the{space}environment{space}before{space}printing{space}this{space}{message_variations}'
104+
f'|{sentence_start}Please{space}consider{space}the{space}environment{space}before{space}printing{space}this{space}{message_variations}'
105105
f')[a-zA-Z0-9:;.,?!<>()@&/\'\"\“\” {dot}\xA0\t\-]*',
106106
re.IGNORECASE
107107
)
@@ -129,7 +129,7 @@ def fr_support(self):
129129
self._MULTI_QUOTE_HDR_REGEX = r'(?!Le.*Le\s.+?a écrit[a-zA-Z0-9.:;<>()&@ -]*:)(Le\s(.+?)a écrit[a-zA-Z0-9.:;<>()&@ -]*:)'
130130

131131
def en_support(self):
132-
self.SIG_REGEX = re.compile(r'(--|__|-\w)|(^([Ss]ent from|[Gg]et [Oo]utlook)\s(\w+\s*){1,6})')
132+
self.SIG_REGEX = re.compile(r'(--|__|-\w)|(^(sent from|get outlook)\s(\w+\s*){1,6})|(Best regards|Thanks,|Thank you,|Best,|All the best|regards,)', flags=re.IGNORECASE)
133133
self.QUOTE_HDR_REGEX = re.compile('\s*On.*wrote\s*:$')
134134
self.QUOTED_REGEX = re.compile(r'(>+)|((&gt;)+)')
135135
self._MULTI_QUOTE_HDR_REGEX = r'(?!On.*On\s.+?wrote\s*:)(On\s(.+?)wrote\s*:)'

0 commit comments

Comments
 (0)