https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-08-26T19:54:38ZRedmineRedmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=197812010-08-26T19:54:38ZEric Davis
<ul><li><strong>Category</strong> set to <i>Email notifications</i></li></ul><p>It would be difficult to allow these to be customized. Since they deal with data from users, they would each need to be sanitized.</p>
<p>My mail client threads emails from Redmine correctly based on the internal email headers that Redmine generates.</p> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=197842010-08-26T20:11:32ZJoël Lamotte
<ul></ul><p>Eric Davis wrote:</p>
<blockquote>
<p>It would be difficult to allow these to be customized. Since they deal with data from users, they would each need to be sanitized.</p>
</blockquote>
<p>Is it a problem to sanitize this? <br />A user-defined template/config file directly on the server would be a solution making sure that the templates have been setup by some kind of web admin?</p>
<blockquote>
<p>My mail client threads emails from Redmine correctly based on the internal email headers that Redmine generates.</p>
</blockquote>
<p>Don't seem to be the case for gmail. :/</p> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=203642010-09-16T10:38:42ZTerence Mill
<ul></ul><p>This is realated to Issue <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Improve E-Mail notification templates (New)" href="https://www.redmine.org/issues/2026">#2026</a></p> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=249982011-02-09T08:46:02ZYuki Sonoda
<ul></ul><p>I am trying to write a patch which solve this issue. It is not hard to add UIs for templates which Redmine uses. However there are two problems.</p>
<ul>
<li>mail body needs a powerful template language to write. But powerful language like ERb allows administrator to write a dangerous template, e.g., breakage of RFC or some security issues. Also powerful languages are hard to learn.</li>
<li>Mail subject is easier. It needs only a simple expression language. Simple language like "[%<project-name> - <span><tracker-name> #</span><issue-id>] (%<issue-status>) %<issue-title>" will help administrator to configure. Here is a problem. Should I use ERB for mail subjects or not? If I use ERB, it causes the same problem as mail bodies. If I use another simpler language, which language should I choose? Developing a new expression language like that?</li>
</ul>
<p>I think Redmine users have a right to shoot their own feet. So I think ERB solves the problems. What do you think?</p>
<a name="PS"></a>
<h2 >P.S.<a href="#PS" class="wiki-anchor">¶</a></h2>
Here is an simple expression language I developed. It can handle only:
<ul>
<li>String interpolation</li>
<li>conditional expression which depends on if the passed variable is empty or not.</li>
</ul>
<pre>
[%<project-name> - %<tracker-name> #%<issue-id>] (%<issue-status>) %<issue-title>
[%<project-name> - %<tracker-name> #%<issue-id>] %<issue-status ? "(%<issue-status>) " : "">
</pre>
<p>it is easy to implement, easy to learn and we can solve a half of <a class="issue tracker-2 status-1 priority-4 priority-default" title="Feature: Email texts template/configuration. (New)" href="https://www.redmine.org/issues/6221">#6221</a> with it. But users must learn another language, anyway.</p> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=250022011-02-09T09:37:53ZJoël Lamotte
<ul></ul><blockquote>
<p>I think Redmine users have a right to shoot their own feet. So I think ERB solves the problems. What do you think?</p>
</blockquote>
<p>I agree.</p> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=570652014-06-25T07:48:35ZSergey Startsev
<ul></ul><p>This would be a great feature. +1<br />Our customers want notification letters to be more inmormative and readable.</p> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=613072015-02-04T16:40:14ZÒscar Casajuana
<ul></ul><p>+1</p> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=618432015-03-04T06:02:54ZToshi MARUYAMA
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/61843/diff?detail_id=46790">diff</a>)</li></ul> Redmine - Feature #6221: Email texts template/configuration.https://www.redmine.org/issues/6221?journal_id=907972019-03-18T12:17:43ZJ. Pablo Zebraitis
<ul></ul><p>+1 <br />good solution: Yuki Sonoda.</p>