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

Email Reply parser #13

Closed
teeranan opened this issue Oct 20, 2014 · 1 comment
Closed

Email Reply parser #13

teeranan opened this issue Oct 20, 2014 · 1 comment

Comments

@teeranan
Copy link

Hi! We are trying to use the EmailReplyParser in our project. We are now testing it. We ran EmailReplyParser.parse_reply(message)
And we noticed that in parsing this message https://gist.github.com/teeranan/46ccdd3f8dacbc061bde. The parser removed all the lines after the line "-------------- next part --------------". Is this part not considered as a reply in your parser?

@roycehaynes
Copy link
Contributor

Yo @teeranan, correct. This line in the email reply parser code:

 SIG_REGEX = r'(--|__|-\w)|(^Sent from my (\w+\s*){1,3})'

recognizes -- as the beginnging of a signature part / ending of an email.

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