Patch #12813

Allow replies to original issue e-mail to add issue notes

Added by mark burdett almost 5 years ago. Updated over 1 year ago.

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

0%

Category:Email receiving
Target version:-

Description

When an issue is submitted to Redmine via e-mail, and a carbon-copied recipient replies to the original e-mail, the subject will not include the issue number. This reply (and future replies) result in the creation of additional new issues.

This patch allows the mail handler to lookup the issue by subject, and add the reply as a note on the original issue. If no matching issue is found, it falls back to adding a new issue.

redmine-issue-reply-match-by-subject.patch Magnifier (1.23 KB) mark burdett, 2013-01-11 16:04

redmine-issue-reply-match-by-subject.patch Magnifier (1.22 KB) mark burdett, 2013-01-11 20:02

redmine-issue-reply-match-by-subject.patch Magnifier (1.33 KB) mark burdett, 2013-08-16 03:09

redmine-issue-reply-match-by-subject.patch Magnifier (1.45 KB) mark burdett, 2015-06-26 05:35

redmine-issue-reply-match-by-subject.patch Magnifier (1.37 KB) mark burdett, 2016-01-28 03:14

History

#1 Updated by mark burdett almost 5 years ago

Updated patch - find the most recent issue matching this subject, in case there are multiple issues with the same subject.

#2 Updated by Toshi MARUYAMA almost 5 years ago

  • Category set to Email receiving

#3 Updated by Timothy Fawcett almost 5 years ago

Two comments:
  1. Would be nice if the UID of the message was stored with the email/issue so that could be used to match these replies with the original email
  2. Would be best (to avoid adding notes to the wrong issue) to also match the author to one of the email recipients. Would normally reply to all which would include the issue creation email address as well as all that was on the email, including the original author.

Thank you for this...

#4 Updated by mark burdett over 4 years ago

This new version of the patch catches an edge case: If the issue subject starts with "Re: ", then replies to the original e-mail will not add an additional "Re: " in front: We need to search for the whole e-mail subject as the issue subject, rather than removing the "Re: " prefix from the e-mail subject.

#5 Updated by Maicon Zucco over 2 years ago

Hi Mark,

Thanks for your solution. Isn't the best, but works.
You know how is possible to implement those validations too?
  • validate project
  • validate if issue is open
  • validate if sender is author, assigned_to or watcher of task

Thanks.

#6 Updated by mark burdett over 2 years ago

Noticed this patch was formatted incorrectly. Haven't had a need for the validations, but it's a good idea if someone wants to add it to the patch.

#7 Updated by mark burdett almost 2 years ago

This patch was using deprecated finders; now should work on current version of redmine.

#8 Updated by Snir Sh almost 2 years ago

Hi,
Can you help please?
I used the command "patch -p0 < path/redmine-issue-reply-match-by-subject.patch" to apply the patch.
What should I do now to start using it?

Thanks!

#9 Updated by Bahri Yardim over 1 year ago

This patch addresses a lacking feature in a great way.

Thumbs up for the patch and issue.

This should be a core functionality.

#10 Updated by Bahri Yardim over 1 year ago

@Snir Sh
If you don't know how to patch a ".patch" file. Open it in a text editor and patch the file manually. You can understand which line to change when you examine the ".patch" file.

Also available in: Atom PDF