Project

General

Profile

Actions

Feature #7349

open

Per-project email notification settings

Feature #7349: Per-project email notification settings

Added by Max Khon almost 16 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Resolution:

Description

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).


Files

project_notifications.diff (17 KB) project_notifications.diff Denis Malinovsky, 2011-02-08 11:36
project_notifications.diff (16.9 KB) project_notifications.diff Denis Malinovsky, 2011-02-09 05:48
project_notifications-3.diff (16.9 KB) project_notifications-3.diff Denis Malinovsky, 2011-02-09 07:08

Related issues 9 (5 open — 4 closed)

Related to Redmine - Feature #4015: Make app settings overridable at project levelNewActions
Related to Redmine - Feature #8241: Advanced notification: per user, per project configurable schedule, event filter and notification formatNewActions
Related to Redmine - Feature #1853: Make Projects truly independent of each otherNewActions
Related to Redmine - Feature #13742: Multi project for email incomingClosedActions
Related to Redmine - Feature #4462: Per Project Emission AddressNewActions
Related to Redmine - Feature #23565: As a project admin I need to be able to set notification rules at the project level based on a role.NewActions
Has duplicate Redmine - Feature #3452: Per project email notifications settings panelClosedActions
Has duplicate Redmine - Feature #6080: Email Nofitication Setting for ProjectClosedActions
Has duplicate Redmine - Feature #19047: Email notification per projectClosedActions

Updated by Denis Malinovsky almost 16 years ago Actions #1

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.

Updated by Denis Malinovsky almost 16 years ago Actions #2

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.

Updated by Denis Malinovsky almost 16 years ago Actions #3

One more bug fix—made project notification settings table structure identical with global settings.

Updated by Kyeongmo Cho over 15 years ago Actions #4

This is not work with System Notifications plug-in.

Updated by Adrian Rotaru almost 14 years ago Actions #5

+1

Updated by Julian S. Luipold almost 14 years ago Actions #6

+1

Updated by Premysl Vohnout almost 14 years ago Actions #7

This would very interesting feature. +1

Updated by Eric Brüggemann over 13 years ago Actions #8

Anyone tried this patch with Redmine 2.2.3?

Updated by Jonas Götze about 13 years ago Actions #9

+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

Updated by Vikram Lele about 13 years ago Actions #10

+1 very useful feature.

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

Updated by Toshi MARUYAMA almost 13 years ago Actions #11

  • Related to Feature #6176: Email Notifications per project added

Updated by Toshi MARUYAMA almost 13 years ago Actions #12

  • Related to deleted (Feature #6176: Email Notifications per project)

Updated by Toshi MARUYAMA almost 13 years ago Actions #13

Updated by antoine tanguy over 12 years ago Actions #14

this code into app/models/mailer.rb

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     

seems to do the tricks

Updated by [ Desperados ] over 11 years ago Actions #15

is this trick working with 2.6.x ? thanks

Updated by Toshi MARUYAMA over 11 years ago Actions #16

  • Has duplicate Feature #6080: Email Nofitication Setting for Project added

Updated by Toshi MARUYAMA over 11 years ago Actions #17

Updated by dominik ch over 11 years ago Actions #18

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:

  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

To avoid wrong email addresses I used regexp for field:

^[a-zA-Z0-9_.+-]+@mydomain.com

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.

Updated by [ Desperados ] over 11 years ago Actions #19

does it work with redmine 3? thanks

Updated by Mutsu Yakumo about 11 years ago Actions #20

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.

Updated by Toshi MARUYAMA about 10 years ago Actions #22

  • Related to Feature #23565: As a project admin I need to be able to set notification rules at the project level based on a role. added

Updated by Aleksandar Pavic over 9 years ago Actions #23

On which version of Redmine does patch work with?

And +1 for this feature

Updated by Ilya Prokazov over 9 years ago Actions #24

+

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

Actions

Also available in: PDF Atom