diff options
Diffstat (limited to 'python/quote_parsing')
| -rw-r--r-- | python/quote_parsing/parse_emails.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/quote_parsing/parse_emails.py b/python/quote_parsing/parse_emails.py index f2627a48..91acfbbb 100644 --- a/python/quote_parsing/parse_emails.py +++ b/python/quote_parsing/parse_emails.py @@ -878,7 +878,8 @@ def parse_barc(fh, index_desc): pat = re.compile(regex) line = next(fh).strip() while True: - if ("00Jan00" in line) or ("(Fwd , FwdDV01 )" in line): + # The end of barclays quotes are empty quote blocks + if ("00Jan00" in line) or ("(Fwd,FwdDV01)" in line.replace(" ", "")): break elif "(" in line: if m := pat.match(line): |
