プロジェクト

全般

プロフィール

Vote #62609

完了

Asynchronous email delivery

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

ステータス:
Closed
優先度:
低め
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
開始日:
2008/02/06
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
6
issue_org_id:
613
author_id:
306
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

As suggested at http://www.datanoise.com/articles/2006/7/14/asynchronous-email-delivery , the email delivery delay experienced by users can be almost eliminated creating a new Thread to handle the delivery.

This code at the public part of Mailer.rb model is the most simplistic way to achieve it :

@alias_method :old_deliver, :deliver! unless method_defined?(:old_deliver)

def deliver!()
Thread.start(mail) do |email|
old_deliver
end
end@


journals

Added in r2339. Use :async_smtp instead of :smtp to enable asynchronous email delivery.
--------------------------------------------------------------------------------


related_issues

relates,Closed,4228,no notification on issue creation by mail with redmine:email:receive_imap
relates,Closed,5058,reminder mails are not sent when delivery_method is :async_smtp

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

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

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

いいね!0
いいね!0