プロジェクト

全般

プロフィール

Vote #69003

未完了

Per-project email notification settings

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
-
開始日:
2011/01/17
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
0
issue_org_id:
7349
author_id:
26759
assigned_to_id:
0
comments:
24
status_id:
1
tracker_id:
2
plus1:
5
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

It should be possible to configure email notification settings per project (with global notification settings be the default for new projects).

So that it is possible to use the same redmine installation for e.g. development and support tasks (with different e-mail notification settings for dev. and support projects).


journals

Here's somewhat dirty patch for this issue.
* It creates new ProjectSetting model,
* migrates global notification settings for each project,
* adds project notification settings page with following options: Emission email address, Blind carbon copy recipients (bcc), Plain text mail (no HTML), Emails header and Emails footer.
--------------------------------------------------------------------------------
Fixed a bug with settings migration—didn't take into account global settings may not be exist in database yet, now it's loading configuration defaults as well.
--------------------------------------------------------------------------------
One more bug fix—made project notification settings table structure identical with global settings.
--------------------------------------------------------------------------------
This is not work with System Notifications plug-in.
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
This would very interesting feature. +1
--------------------------------------------------------------------------------
Anyone tried this patch with Redmine 2.2.3?
--------------------------------------------------------------------------------
+1 Very useful. My Reporters are quite confused because they need to send the email to create tickets to another adress than the one notifications are coming from.

edit: I think this plugin might support it - I will try:
https://github.com/jfqd/redmine_helpdesk
--------------------------------------------------------------------------------
+1 very useful feature.

I have different roles in different projects, and may not want same level of notifications in all the projects.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
this code into app/models/mailer.rb
<pre><code class="ruby">
def mail(headers={}, &block)
headers.merge! 'X-Mailer' => 'Redmine',
'X-Redmine-Host' => Setting.host_name,
'X-Redmine-Site' => Setting.app_title,
'X-Auto-Response-Suppress' => 'OOF',
'Auto-Submitted' => 'auto-generated',
'From' => Setting.mail_from,
'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"
if @issue
headers.merge!('From' => "[#{@issue.project.name}] - #{Setting.mail_from}")
end
</code></pre>

seems to do the tricks
--------------------------------------------------------------------------------
is this trick working with 2.6.x ? thanks
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
For all people looking for specific e-mail address per project, code above just adds project name to "From" field. To change email address we need to add custom field for project and add it there. Following works:

<pre><code class="ruby">
def mail(headers={}, &block)
headers.merge! 'X-Mailer' => 'Redmine',
'X-Redmine-Host' => "#{Setting.host_name}",
'X-Redmine-Site' => Setting.app_title,
'X-Auto-Response-Suppress' => 'OOF',
'Auto-Submitted' => 'auto-generated',
'From' => Setting.mail_from,
'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>"

if @issue
new_name = "#{@issue.project.name} [#{Setting.app_title}]"
headers.merge!('From' => "#{new_name} <#{Setting.mail_from}>")
new_mail = @issue.project.custom_field_values[0].value
if !new_mail.nil?
if new_mail.length() > 5
headers.merge!('From' => "#{new_name} <#{new_mail}>")
end
end
end
</code></pre>

To avoid wrong email addresses I used regexp for field:
<pre>^[a-zA-Z0-9_.+-]+@mydomain.com</pre>
That way I forced to use something from our domain too :)

It checks if there is value of first custom field for project (in my case it was first) and then alters From address. It works for latest 2.6.x redmine, and it's quite simple. All You have to do is to configure that additional project field and fill it with different email if needed. I think there is more e-mail comming out of project (like news or something) but this one covers almost all of my needs.

--------------------------------------------------------------------------------
does it work with redmine 3? thanks
--------------------------------------------------------------------------------
Hello, I hope someone can help me.

I have different Projects where created Tickets.
And I need for every Project another emission Address, for Updating the Tickets.
I tried so much things, but nothing work…

I’m using Bitnami Redmine Version 3.1.0-0

I hope someone have a reason for my Problem.

--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
On which version of Redmine does patch work with?

And +1 for this feature
--------------------------------------------------------------------------------
+

need ability to specify different mail-from address for different projects
Is this plugin actual? https://github.com/ajwalters/redmine_project_specific_email_sender
--------------------------------------------------------------------------------


related_issues

relates,New,4015,Make app settings overridable at project level
relates,New,8241,Advanced notification: per user, per project configurable schedule, event filter and notification format
relates,New,1853,Make Projects truly independent of each other
relates,Closed,13742,Multi project for email incoming
relates,New,4462,Per Project Emission Address
relates,New,23565,As a project admin I need to be able to set notification rules at the project level based on a role.
duplicates,Closed,3452,Per project email notifications settings panel
duplicates,Closed,6080,Email Nofitication Setting for Project
duplicates,Closed,19047,Email notification per project

Admin Redmine さんがほぼ2年前に更新

  • カテゴリEmail notifications_9 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0