プロジェクト

全般

プロフィール

Vote #73830

完了

Daylight savings causes inconsistency of Message-Id in emails

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
9
version_id:
127
issue_org_id:
13888
author_id:
10527
assigned_to_id:
332
comments:
10
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

This to maintained threaded messages that are referred to same bug but are posted before and after daylight savings off\on

For me this is urgent because messed up my threaded bug mail.

xref bug #13851


journals

pasquale [:dedalus] wrote:
> This to maintained threaded messages that are referred to same bug but are posted before and after daylight savings off\on
>
> For me this is urgent because messed up my threaded bug mail.
>
> xref bug #13851

nice job!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
We don't have to care about daylight savings if we always use UTC when generating a message-id.

<pre><code class="diff">
Index: app/models/mailer.rb
===================================================================
--- app/models/mailer.rb (リビジョン 17870)
+++ app/models/mailer.rb (作業コピー)
@@ -721,7 +721,7 @@
hash = [
"redmine",
"#{object.class.name.demodulize.underscore}-#{object.id}",
- timestamp.strftime("%Y%m%d%H%M%S")
+ timestamp.utc.strftime("%Y%m%d%H%M%S")
]
if rand
hash << Redmine::Utils.random_hex(8)
</code></pre>
--------------------------------------------------------------------------------
Go MAEDA wrote:
> We don't have to care about daylight savings if we always use UTC when generating a message-id.
>
> [...]

yep, I agree
--------------------------------------------------------------------------------
Attaching a patch that includes a test.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the fix.
The timestamp is UTC after r17890. Daylight savings will never affect message-id.
--------------------------------------------------------------------------------

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

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

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


related_issues

duplicates,Closed,13851,Unthreade new mail message

Admin Redmine さんが3年以上前に更新

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

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

いいね!0
いいね!0