プロジェクト

全般

プロフィール

Vote #69231

完了

Extensible MailHandler

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

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

0%

予定工数:
category_id:
29
version_id:
31
issue_org_id:
7598
author_id:
1249
assigned_to_id:
1188
comments:
3
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

app/models/mail_handler is useful but not extensibly from plugins. I think it would be useful if MailHandler were extensible by making a subclass based on it.

I wrote the attached patch. This introduces MailHandler#dispatch_to_default which just calls receive_issue by default. Plugin can extend the dispatch table by overriding #dispatch_to_default.


journals

If it makes plugin development easier, let's go. Don't hesitate to tell us if you have ideas about a real API (don't know if it's really needed though).

Applied in r4820, thanks.
--------------------------------------------------------------------------------
Merged in 1.1-stable.
--------------------------------------------------------------------------------
SPAM
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン1.1.2_31 にセット

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

いいね!0
いいね!0