プロジェクト

全般

プロフィール

Vote #73497

未完了

Better List-Id to help aid Gmail filtering

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

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

0%

予定工数:
category_id:
9
version_id:
0
issue_org_id:
13359
author_id:
73708
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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: 

journals

Improvement to #10888
--------------------------------------------------------------------------------
Here is an updated patch which doesn't croak on mails which are sent for non-issue updates (user info notifications for example)

<pre>
--- redmine-2.1.6/app/models/mailer.rb.orig 2013-01-09 17:34:07.000000000 +0100
+++ redmine-2.1.6/app/models/mailer.rb 2013-04-16 11:33:00.057745141 +0200
@@ -380,13 +380,19 @@
end

def mail(headers={})
+ if @issue
+ listid = "<#{@issue.project.identifier}.#{Setting.host_name}>"
+ else
+ listid = "#{Setting.host_name}>"
+ end
+
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('@', '.')}>"
+ 'List-Id' => listid

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

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

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

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


related_issues

relates,Closed,10888,Bring back List-Id to help aid Gmail filtering
relates,Closed,14792,Don't add a display name and extra angle brackets in List-Id header field

Admin Redmine さんが約2年前に更新

  • カテゴリEmail notifications_9 にセット

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

いいね!0
いいね!0