Project

General

Profile

Actions

Patch #11684

closed

Truncate incoming emails

Added by Joel Thompson about 12 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

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.


Files

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

Related issues

Related to Redmine - Feature #5864: Regex Text on Receiver EmailClosedJean-Philippe Lang2010-07-10

Actions
Actions #1

Updated by Toshi MARUYAMA about 12 years ago

  • Category set to Email receiving
Actions #2

Updated by Etienne Massip about 12 years ago

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

Actions #3

Updated by Joel Thompson about 12 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.

Actions #4

Updated by Marc D. about 11 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.:(

Actions #5

Updated by Toshi MARUYAMA almost 11 years ago

Actions #6

Updated by First Last about 8 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.

Actions #7

Updated by Go MAEDA almost 6 years 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.

Actions

Also available in: Atom PDF