diff options
| -rw-r--r-- | python/quote_parsing/parse_emails.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/quote_parsing/parse_emails.py b/python/quote_parsing/parse_emails.py index 119ca793..d8d81003 100644 --- a/python/quote_parsing/parse_emails.py +++ b/python/quote_parsing/parse_emails.py @@ -565,7 +565,8 @@ def parse_bnp(fh, index_desc): return option_stack, fwd_index -subject_baml = re.compile(r"(?:Fwd:){0,2}(?:BAML )?(\D{2})(\d{1,2})\s") +# subject_baml = re.compile(r"(?:Fwd:){0,2}(?:BAML )?(\D{2})(\d{1,2})\s") +subject_baml = re.compile(r"(?:Fwd:){0,2}(?:BofA )?(\D{2})(\d{1,2}).*Ref[^\d]*([\d.]+)") subject_ms = re.compile( r"[^$]*\$\$ MS CDX OPTIONS: (IG|HY)(\d{2})[^-]*- REF[^\d]*([\d.]+)" ) @@ -598,7 +599,7 @@ def parse_email(email, date_received, conn): for source in ["BAML", "GS", "MS", "NOM", "SG", "CITI", "CS", "BNP"]: if m := globals()[f"subject_{source.lower()}"].match(subject): version = None - if source in ["BAML", "CITI", "BNP"]: + if source in ["CITI", "BNP"]: indextype, series = m.groups() elif source == "CS": d = m.groupdict() |
