Patch #11684

Truncate incoming emails

Added by Joel Thompson about 8 years ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Email receiving
Target version:-

Description

While setting up Redmine for work, we decided we needed the incoming emails to be truncated properly, to remove any quotes when replying.

I came up with a patch for the mail handler which will automatically strip everything after the reply message. I figured this might be able to be worked into Redmine as an option in the settings, it works with replying to a Redmine email from outlook which I have tested but it should also work with replies from gmail, apple mail, and some other mail clients.

mailTruncate.patch Magnifier (1.26 KB) Joel Thompson, 2012-08-23 02:14


Related issues

Related to Redmine - Feature #5864: Regex Text on Receiver Email Closed 2010-07-10

History

#1 Updated by Toshi MARUYAMA about 8 years ago

  • Category set to Email receiving

#2 Updated by Etienne Massip about 8 years ago

Why not simply fill the Truncate emails after one of these lines accordingly in the Administration/Settings/Incoming mails tab?

#3 Updated by Joel Thompson about 8 years ago

Etienne Massip wrote:

Why not simply fill the Truncate emails after one of these lines accordingly in the Administration/Settings/Incoming mails tab?

Well to be honest, I could not figure out how to get that to work using a regular expression, maybe some better documentation would provide useful for this part. However I still think a simple check box asking if you want to truncate emails which works across "most" email clients is the simplest and most elegant solution.

Which is why I shared this patch as I thought this could be a good start at implementing it.

#4 Updated by Marc D. almost 7 years ago

+1 exactly what I was searching for, Thank you!
Just had to edit it for german mails.
The method of redmine works fine, but incase the email client adds something with a date or something like that it doesnt work, because you cant use wildcards.:(

#5 Updated by Toshi MARUYAMA over 6 years ago

#6 Updated by First Last about 4 years ago

Ah, this old issue :(

I tried this patch with latest docker redmine's release. It worked for GNU/Linux's Thunderbird, but not for Windows 7's Thunderbird [1]. I suspect is the difference in new line character between Windows and GNU/Linux

[1] not working means that after applying the patch, there's no expression evaluated to truncate the message: could be regex or not; does not work. Without the patch works; but without regex.

#7 Updated by Go MAEDA over 1 year ago

  • Status changed from New to Closed

You can use regular expressions for the "Truncate emails after one of these lines" setting in Redmine 3.4.0 and later (#5864). It covers this feature request.

Also available in: Atom PDF