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

issue in parsing email reply for html content #79

Open
ksthakur opened this issue Apr 5, 2022 · 1 comment
Open

issue in parsing email reply for html content #79

ksthakur opened this issue Apr 5, 2022 · 1 comment

Comments

@ksthakur
Copy link

ksthakur commented Apr 5, 2022

below is code, I am extracting the mail body using mailparser which is text/html content
and trying to get latest reply using EmailReplyParser.parse_reply, but it is extracting complete message not the reply only

mail = mailparser.parse_from_bytes(file.read()
reply_text = EmailReplyParser.parse_reply(mail.text_html[0])

it is working file for text/plain content
mail = mailparser.parse_from_bytes(file.read()
reply_text = EmailReplyParser.parse_reply(mail.text_plIn[0])

any suggestions are appreciated, thanks in adavnce

@davidnagli
Copy link

Don't know if you solved this yet, but I had the same issue and I figured out why:

willdurand/EmailReplyParser#91

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