Project

General

Profile

Actions

Feature #13359

closed

Add project identifier to List-Id header in notification emails for better Gmail filtering

Added by Jimmy Engelbrecht almost 12 years ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Email notifications
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

This gives the possibility to filer mail-updates from different project into different folders.

--- ./redmine-2.1.6/app/models/mailer.rb        2013-01-09 17:34:07.000000000 +0100
+++ /opt/redmine-2.1.6/app/models/mailer.rb     2013-03-05 15:33:38.438398984 +0100
@@ -386,7 +386,7 @@
             'X-Auto-Response-Suppress' => 'OOF',
             'Auto-Submitted' => 'auto-generated',
             'From' => Setting.mail_from,
-            'List-Id' => "<#{Setting.mail_from.to_s.gsub('@', '.')}>" 
+            'List-Id' => "<#{@issue.project.identifier}.#{Setting.host_name}>" 

     # Removes the author from the recipients and cc
     # if he doesn't want to receive notifications about what he does

The resulting List-Id could look like this:

List-Id: <cantemo-ab.vvv.cantemo.com>

Files

13359.patch (2.85 KB) 13359.patch Go MAEDA, 2024-07-20 05:41

Related issues

Related to Redmine - Feature #10888: Bring back List-Id to help aid Gmail filteringClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #14792: Don't add a display name and extra angle brackets in List-Id header fieldClosedGo MAEDA

Actions
Has duplicate Redmine - Feature #41031: Include project identifier in List-Id header field of notification emailsClosed

Actions
Actions

Also available in: Atom PDF