alfonsrv / mail-parser-reply

📧 Mail reply parser library for Python with multi-language support
https://pypi.org/project/mail-parser-reply/
MIT License
43 stars 16 forks source link

DEFAULT_SIGNATURE_REGEX marking beginning of list as signature #11

Open kondera opened 3 months ago

kondera commented 3 months ago

DEFAULT_SIGNATURE_REGEX is catching lists as signatures

from mailparser_reply import EmailReplyParser

segmenter = EmailReplyParser(
    languages=["en"],
)
segmenter.read("""
This is simple markdown list:
- a
- b
""").replies

# output
# [EmailReply(content='This is test list:\n- a\n- b', headers='', signatures='- a\n- b', disclaimers=[])]
tommyM86 commented 3 months ago

I encountered the same issue.