Index: test/functional/settings_controller_test.rb =================================================================== --- test/functional/settings_controller_test.rb (revision 1492) +++ test/functional/settings_controller_test.rb (working copy) @@ -40,12 +40,14 @@ def test_post_edit_notifications post :edit, :settings => {:mail_from => 'functional@test.foo', + :mail_cc => 'functionalcc@test.foo', :bcc_recipients => '0', :notified_events => %w(issue_added issue_updated news_added), :emails_footer => 'Test footer' } assert_redirected_to 'settings/edit' assert_equal 'functional@test.foo', Setting.mail_from + assert_equal 'functionalcc@test.foo', Setting.mail_cc assert !Setting.bcc_recipients? assert_equal %w(issue_added issue_updated news_added), Setting.notified_events assert_equal 'Test footer', Setting.emails_footer Index: app/models/mailer.rb =================================================================== --- app/models/mailer.rb (revision 1492) +++ app/models/mailer.rb (working copy) @@ -210,6 +210,7 @@ recipients [] cc [] end + cc << Setting.mail_cc super end Index: app/views/settings/_notifications.rhtml =================================================================== --- app/views/settings/_notifications.rhtml (revision 1492) +++ app/views/settings/_notifications.rhtml (working copy) @@ -4,6 +4,9 @@

<%= text_field_tag 'settings[mail_from]', Setting.mail_from, :size => 60 %>

+

+<%= text_field_tag 'settings[mail_cc]', Setting.mail_cc, :size => 60 %>

+

<%= check_box_tag 'settings[bcc_recipients]', 1, Setting.bcc_recipients? %> <%= hidden_field_tag 'settings[bcc_recipients]', 0 %>

Index: lang/en.yml =================================================================== --- lang/en.yml (revision 1492) +++ lang/en.yml (working copy) @@ -191,6 +191,7 @@ setting_attachment_max_size: Attachment max. size setting_issues_export_limit: Issues export limit setting_mail_from: Emission email address +setting_mail_cc: CC email address for all notifications setting_bcc_recipients: Blind carbon copy recipients (bcc) setting_host_name: Host name setting_text_formatting: Text formatting Index: config/settings.yml =================================================================== --- config/settings.yml (revision 1492) +++ config/settings.yml (working copy) @@ -44,6 +44,8 @@ default: '25,50,100' mail_from: default: redmine@somenet.foo +mail_cc: + default: bcc_recipients: default: 1 text_formatting: