プロジェクト

全般

プロフィール

Vote #75143

完了

Mailer.token_for generates invalid message_id when using from address with full name

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

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

0%

予定工数:
category_id:
9
version_id:
84
issue_org_id:
16619
author_id:
65730
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
79
ステータス-->[Closed]

説明

The token generator in Mailer.rb (Mailer.token_for) has the following code:

host = Setting.mail_from.to_s.gsub(%r{^.*@}, '')

If you have configured Redmine to send from an address with both name and email, (f.ex. "Redmine Mailerno-reply@redmine.org") this results in a Message-id like the following being created:

>

the double ">" at the end is considered illegal by some mail servers, and results in them rejecting it.

A possible solution could be the following:

host = Setting.mail_from.to_s.gsub(%r{(^.*@)|>}, '')

journals

Fixed in r13126, thanks for pointing this out.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------

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

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン2.5.2_84 にセット

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

いいね!0
いいね!0