Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEFAULT_SIGNATURE_REGEX marking beginning of list as signature #11

Open
kondera opened this issue Aug 20, 2024 · 1 comment
Open

DEFAULT_SIGNATURE_REGEX marking beginning of list as signature #11

kondera opened this issue Aug 20, 2024 · 1 comment

Comments

@kondera
Copy link

kondera commented Aug 20, 2024

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
Copy link

I encountered the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants