Patch #13658

include "In-Reply-To" field to aid email threading for some clients

Added by Robert Hailey almost 6 years ago. Updated over 2 years ago.

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


Category:Email notifications
Target version:Candidate for next minor release


Patch was made against 1.4.5, but will most likely apply to the 2.x line as well.

redmine-f3228-emails-in-reply-to.patch Magnifier (621 Bytes) Robert Hailey, 2013-04-01 20:24

Screen Shot 2016-07-27 at 12.41.54 PM.png (141 KB) Mark Felder, 2016-07-27 19:42

redmine-fix-threading.patch Magnifier (2.2 KB) Mark Felder, 2016-07-27 20:49


#1 Updated by Jan Niggemann ( team member) almost 6 years ago

  • Target version set to Candidate for next minor release

#2 Updated by Mark Felder over 2 years ago

Can this get merged if it works? #10888 didn't do much to help Gmail's threading. You still get entirely new threads when the status of a ticket changes.

#3 Updated by Mark Felder over 2 years ago

Here's redmine 3.2.3

#4 Updated by Mark Felder over 2 years ago

Attempting to attach patch, but I keep getting marked as spam

#5 Updated by Mark Felder over 2 years ago

This patch does the following:

  • Removes Tracker Name and Issue Status from the Subject.
    • This does not belong in the subject. It's repeated in the email already.
  • Adds an X-Redmine-Issue-Tracker header to the email
    • I'm sure someone wants to filter their Redmine bugs by Tracker/classification. That's quite reasonable, but a header is a better place for this data.
  • Adds an In-Reply-To header in addition to the References header
    • GMail respects this as do many other MUAs.

#6 Updated by Mark Felder over 2 years ago

Here's the rest of my message that was curiously getting marked as spam:

GMail threads messages by Subject and In-Reply-To. Other MUAs like Mutt have a more sophisticated algorithm for threading emails, but I do not believe this should be considered a bug or deficiency on GMail's part. Simply put, data does not belong in email Subjects. The only thing that should change is a prefix of Re:, Fwd:, etc. Anything else is a gross violation of email and internet etiquette.

#7 Updated by Mark Felder over 2 years ago

Sorry for the ticket noise, but hilariously I've had to break up my message to find the part that Redmine is marking as spam.

In conclusion:

There are people out there that get overwhelmed by a giant sprawl on emails in their Inbox. You're making Redmine a better experience for them, too.

Also available in: Atom PDF