Patch #11495
openReopen closed issues on reply by email
0%
Description
This patch adds a setting to enable automatically reopening closed issues if a new reply by email is received.
The new status to assign to a reopened issue can be also set in the global settings.
Files
Related issues
Updated by Timothy Fawcett almost 12 years ago
This patch would work in Redmine 2.2.2 if the following line in mail_handler.rb did not overright the change in issue.status:
issue.safe_attributes = issue_attributes_from_keywords(issue)
Updated by Alex Shulgin over 11 years ago
Timothy Fawcett wrote:
This patch would work in Redmine 2.2.2 if the following line in mail_handler.rb did not overright the change in issue.status:
issue.safe_attributes = issue_attributes_from_keywords(issue)
What makes you think it doesn't work in 2.x? It does for me (and I have a report that it works on 2.2.2 exactly.) The patch was against 1.4 (or 1.3) and the line you show didn't change since then. This line can overwrite the change, but only if the status was deliberately altered by the email author, in which case it should overwrite it.
I must note that to make the thing actually work you need to check the 'Reopen closed issues on email reply' checkbox in the Redmine Settings after applying the patch.
--
Alex
Updated by guzzi jones almost 11 years ago
When i run this on the latest version of redmine i get "can't find file to patch at input line 5"
Updated by guzzi jones almost 11 years ago
guzzi jones wrote:
When i run this on the latest version of redmine i get "can't find file to patch at input line 5"
Environment:
Redmine version 2.4.1.stable
Ruby version 1.8.7-p352 (2011-06-30) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter PostgreSQL
SCM:
Subversion 1.6.17
Git 1.7.9.5
Filesystem
Redmine plugins:
no plugin installed
Updated by guzzi jones almost 11 years ago
got the patch to run by using p1
$ sudo patch -p1 < issue-reopen.patch
patching file app/models/mail_handler.rb
Hunk #1 FAILED at 190.
1 out of 1 hunk FAILED -- saving rejects to file app/models/mail_handler.rb.rej
patching file app/views/settings/_mail_handler.html.erb
Hunk #1 succeeded at 23 (offset 5 lines).
patching file config/locales/en.yml
Hunk #1 succeeded at 376 (offset 11 lines).
patching file config/settings.yml
Hunk #1 FAILED at 148.
1 out of 1 hunk FAILED -- saving rejects to file config/settings.yml.rej
looks like this patch will not install anymore
Updated by Toshi MARUYAMA almost 11 years ago
- Related to Feature #15837: Reply to closed ticket changes status to "reopen" designated status added
Updated by Toshi MARUYAMA almost 11 years ago
- Related to Feature #15838: feedback recived status designation added
Updated by Bruno Souza almost 9 years ago
guzzi jones wrote:
When i run this on the latest version of redmine i get "can't find file to patch at input line 5"
Same problem here! This feature will be very helpful for us.
Environment: Redmine version 3.1.2.stable.14882 Ruby version 2.1.5-p273 (2014-11-13) [x86_64-linux-gnu] Rails version 4.2.4 Environment production Database adapter PostgreSQL SCM: Subversion 1.8.10 Git 2.1.4 Filesystem Redmine plugins: redmine_base_deface 0.0.1 redmine_closes_resolved_issues 1.0.2 redmine_default_custom_query 1.1.2 redmine_helpdesk 0.0.15 redmine_image_clipboard_paste 1.0.0 redmine_ldap_sync 2.0.7.devel.gba84cac44e redmine_lightbox2 0.2.4 redmine_private_wiki 0.2.2 redmine_refresh 0.3.1 redmine_track_control 1.1.0
Updated by Harry Wood over 8 years ago
Seems to be a duplicate of an earlier issue #7994 (and the same patch code?) Would this fix be considered for trunk? or is there a newer solution to this problem I'm not aware of?
Updated by Toshi MARUYAMA about 8 years ago
- Has duplicate Feature #7994: reopen closed issues on e-mail added
Updated by Toshi MARUYAMA about 8 years ago
- Related to Feature #6067: Change Ticket Status from Closed to Open on Email Reply added