Truncate incoming emails
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.
#3 Updated by Joel Thompson over 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.
#6 Updated by First Last over 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 . I suspect is the difference in new line character between Windows and GNU/Linux
 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.