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

Stripping Quotes from plain text email replies #697

Open
SySagar opened this issue Aug 15, 2024 · 8 comments
Open

Stripping Quotes from plain text email replies #697

SySagar opened this issue Aug 15, 2024 · 8 comments

Comments

@SySagar
Copy link
Contributor

SySagar commented Aug 15, 2024

So I was using the latest app to have a kind of conversation and I found that if sender is sending message as a reply it is exactly appearing someting like this. Considering this is a conversation I think it would be better if we can only put the message only rather than the separate metadata.

Capture

@BlankParticle
Copy link
Member

I am pretty much sure you edited the reply while sending from gmail
otherwise it should automatically strip the reply

@SySagar
Copy link
Contributor Author

SySagar commented Aug 15, 2024

I simply hit the reply and wrote some text.

2024-08-15.19-24-43.mov

@BlankParticle
Copy link
Member

image something might be off with your gmail setup, It works as expected on my side

@BlankParticle
Copy link
Member

Also that part is not metadata, its part of email, we have mechanism which strip out that part, but if your email is not formatted properly it fails

@SySagar
Copy link
Contributor Author

SySagar commented Aug 15, 2024

ok So I think I got the issue. When sending email we can either set a plain text or rich text. In case of rich text it works but in case of plain text it doesnt.

see both these types os senidng one with '>' and other with '|':

Capture

the output:

Capture

I think somehow we should handle this internally becuase I checked some of the emails provide palin text as default or maybe manually somebody might have put. Apart from these two cases I didn't find anything else.

@BlankParticle
Copy link
Member

There is nothing we can do with plain text, the internal library cant handle every edge case as there is no standard to follow

Still I will keep this issue open for tracking to see if we can do anything

@BlankParticle BlankParticle changed the title Message formatting of message from sender mail Stripping Quotes from plain text email replies Aug 15, 2024
@McPizza0
Copy link
Member

@SySagar this is what we use to strip: https://github.com/un/packages/tree/main/packages/mailtools
maybe you spot something we missed

@SySagar
Copy link
Contributor Author

SySagar commented Aug 19, 2024

sure will look into this.

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

3 participants