-
Notifications
You must be signed in to change notification settings - Fork 1
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
Possibility of extracting actual message body out of conversation #3
Comments
Hi, I don't think that it is possible due to the fact that each vendor implements replays differently. Can you post here a raw email examples? |
Yes, I have attached Google mail, Yandex and Outlook. I don't think there is a common pattern that all three follows. Google mail and Yandex made it a bit easier as they are wrapping reply part in blockquote, but will still exclude context (a line before it). Google mail also have class gmail_quote wrapping around whole reply and context part. |
Cool, thank you. Do you think that it should be parsed with this lib? |
It would be a great addition to have. Of course I am not expecting you to add it for me, I just wanted to ask if you have thought of this possibility and if you understand the pattern, I will create a PR if I did. |
A PR can be great, thank you 🙏🏼
…On Wed, Feb 9, 2022, 20:22 successful-fella ***@***.***> wrote:
It would be a great addition to have. Of course I am not expecting to add
it for me, I just wanted to ask if you have thought of this possibility and
if you understand the pattern, I will create a PR if I did.
—
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4WVFSN7MKF3B7RA6OKZKLU2KWGJANCNFSM5N3RG3DQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Okay so I just realized that some defined line of text can be added in the email before they are sent from server (depending on type of application being built). I got this idea from TransferWise email and pretty sure many other companies does the same. |
I'm not sure that I got your last message, can you elaborate? |
Thank you for this project. Email is parsing properly.
I tried running it through various types of email. For conversational emails, I saw that this returns whole email body instead of actual response body. Is there a way to separate out response message and quoted conversation?
I tried by finding a pattern but it looks like Google and Microsoft Office follows their own different convention. I believe it might be different for other email clients as well.


(Google using space and date starting with "On ..." and Microsoft separating with border top styling).
Your insights on this will be helpful. Thank you!
The text was updated successfully, but these errors were encountered: