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

Any way to completely ignore copied email in replies from IMAP? #330

Open
JasonRaveling opened this issue Oct 4, 2017 · 4 comments
Open

Comments

@JasonRaveling
Copy link

When a user replies by email, their email automatically places a copy of the previous email after the email they are sending.... normal email behavior. Is there any way to remove that when IMAP is pulled so that the email being replied to doesn't show up in the comment when IMAP pulls it? I've been trying some different truncate options but still haven't had success.

image

@Alanaktion
Copy link
Owner

There are a few things we could try, but this is actually an unsolved problem with email still. There's no standard way that replies are formatted that are consistent between clients, so detecting where the new content ends is very difficult.

We've found that the default truncate line configuration works fairly well for GMail, but have had some issues with other clients. Do you know what clients are sending the emails that show this issue on your site?

@Alanaktion Alanaktion added this to Ideas in 1.7 Release Nov 20, 2017
@Alanaktion Alanaktion removed this from Ideas in 1.7 Release Jan 3, 2018
@Alanaktion Alanaktion added this to To Do in 1.8 Release via automation Jan 3, 2018
@Alanaktion Alanaktion added this to Ideas in Laravel Rewrite Jan 14, 2018
@Alanaktion Alanaktion removed this from Ideas in Laravel Rewrite Jan 14, 2018
@JasonRaveling
Copy link
Author

I haven't looked at method used to truncate emails yet. Planning on doing it once I finally have some free time. Out of curiosity, just shooting in the dark here... Would it be reasonable to assume I could use some regex to find the first line of a reply, then ignore the rest of the following lines that follow? Gmail uses a pretty standard way of quoting the previous emails. I figure if I get a chance, that's one place I would start. Its widely used by individuals and businesses... it also would solve my problem :-) if I could get it to work.

@Alanaktion
Copy link
Owner

In theory that could work, yes. The main reason I don't already do that is that it changes between different email clients and different languages, but it should work at a basic level if everyone is using the same email client and language. Certainly a decent solution for an individual organization.

@JasonRaveling
Copy link
Author

Oh... right, there are more languages than just English. If I were to get it to work for my organization, I don't think the solution I'm currently picturing would be widely useful enough for a pull request to the main repo... probably just a fork for my own use. I'll keep thinking on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
1.8 Release
  
To Do
Development

No branches or pull requests

2 participants