I am using the same E-Mail account on several Drupal Sites and want to process incoming update status notifications by my Redmine installation. It is possible to assign the incoming E-Mail to a preconfigured Project (the website represented in the Redmine project tracking tool). When adding some lines to the incoming E-Mail, one can override the predefined project. See http://www.redmine.org/wiki/1/RedmineReceivingEmails for details.
So I need a possibility to add some more textlines to the mail that drupal send on status update notifications. I added a textarea that can hold several lines, each will be added to the mailbody by hook_mail_alter. Please review the attached patch and add it to the module.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | addinfo-992964-3.patch | 2.85 KB | McGo |
| #1 | update_advanced-992964.patch | 2.72 KB | McGo |
Comments
Comment #1
McGo commentedUpsie. Forgot the patch.
Comment #2
McGo commentedThis could obviously also be used for explaining some details on updating the site to the mail recipient, like a link to the internal site wiki or some standards on SLA... Whatever. I'd really like to see it in the module.
Comment #3
stborchertVery good idea. Looks good and works like a charme.
(very) minor code style issue:
$param_list = explode("\n", variable_get('update_advanced_additional_mailtext',''));There is a space missing before
''.Comment #4
McGo commentedrerolled the patch (git), please review and set to rtbc
Comment #5
stborchertSame as above without code style issue :)
Comment #6
steffenr@McGo: thx for your patch - i just tried it in a test installation - works "like charme" for me too and should be added ...
Comment #7
Leeteq commentedThis is a very practical addition to this module.
No activity in this thread for a year, can it be adapted to 7.x too?
Comment #8
klonosPerhaps switch this issue over at Update Status Detailed Email that seems more appropriate for this?
Comment #9
dwwYup, good idea. Since this other project exists specifically for doing email stuff, I'm happy to move all such feature requests from update_advanced over there. I'd rather update_advanced didn't get into business duplicating the functionality of update_detailed_email.
Thanks,
-Derek
Comment #10
xurizaemonThe patch here is not for this module, but I'm open to such a contribution. Note that #2028091: Override Update Manager's update_mail function -- i.e. change the text of the email's body is basically the same feature request.
If a patch is submitted or the feature is sponsored then I'm happy to consider this going in. It's been over a year since this was updated so I'm going to close this for inactivity in the meantime, don't be shy about bringing it back. I'm just cleaning up the queue of a long-neglected module ;)