Project

General

Profile

Actions

Feature #38273

closed

Improve errors in MailHandler: add MissingContainer and LockedTopic exception

Feature #38273: Improve errors in MailHandler: add MissingContainer and LockedTopic exception

Added by Felix Schäfer almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Email receiving
Target version:
Resolution:
Fixed

Description

There are some cases for which the MailHandler drops incoming emails and just logs an info. This patch replaces this with a custom error to allow for plugins to more easily hook into those unhandled cases. This also unifies the logged message and the error handling in MailHandler.


Files

1-missing_container_error.patch (1.92 KB) 1-missing_container_error.patch Felix Schäfer, 2023-02-13 15:40
2-locked_topic_error.patch (859 Bytes) 2-locked_topic_error.patch Felix Schäfer, 2023-02-13 15:40

Related issues 2 (0 open — 2 closed)

Blocks Redmine - Feature #38274: Receive e-mail replies to news and news commentsClosedGo MAEDAActions
Blocked by Redmine - Feature #38263: Try importing journal replies as issue reply where applicableClosedGo MAEDAActions

Updated by Felix Schäfer almost 4 years ago Actions #1

The attached patch adds a custom generic Error for cases when the replied to object/the container object cannot be found, either because it was deleted or because the e-mail comes from another Redmine installation with different IDs. The second patch adds a custom Error for cases where the topic the e-mail answers to is locked.

Updated by Holger Just almost 4 years ago Actions #2

  • Blocks Feature #38274: Receive e-mail replies to news and news comments added

Updated by Go MAEDA almost 4 years ago Actions #3

  • Target version set to 5.1.0

Setting the target version to 5.1.0.

Updated by Go MAEDA almost 4 years ago Actions #4

  • File 1-missing_container_error-v2.patch added

Updated the first patch to apply cleanly to the current trunk.

Updated by Go MAEDA almost 4 years ago Actions #5

Go MAEDA wrote:

Updated the first patch to apply cleanly to the current trunk.

I am withdrawing this patch. 1-missing_container_error.patch can be applied without problems if #38263 is applied.

Updated by Go MAEDA almost 4 years ago Actions #6

  • File deleted (1-missing_container_error-v2.patch)

Updated by Go MAEDA almost 4 years ago Actions #7

  • Blocked by Feature #38263: Try importing journal replies as issue reply where applicable added

Updated by Go MAEDA over 3 years ago Actions #8

  • Subject changed from Improve errors in MailHandler to Improve errors in MailHandler: add MissingContainer and LockedTopic exception
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patches. Thank you.

Actions

Also available in: PDF Atom