This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new 5125dd4ce1 [FIX] Forward unexpected exceptions upon executing RRT
5125dd4ce1 is described below
commit 5125dd4ce1dc2f88217210d87010e759012bf479
Author: Benoit TELLIER <[email protected]>
AuthorDate: Mon Feb 24 05:18:45 2025 +0100
[FIX] Forward unexpected exceptions upon executing RRT
Previously, unexpected technical issues (like Cassandra driver error)
were interpreted as functional errors, which is misleading and prevent
retrying timely the error.
---
.../james/transport/mailets/RecipientRewriteTableProcessor.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java
b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java
index b51300c8a7..bea226ff77 100644
---
a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java
+++
b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/RecipientRewriteTableProcessor.java
@@ -414,9 +414,11 @@ public class RecipientRewriteTableProcessor {
return new Decision(recipient,
RrtExecutionResult.success(newMailAddresses));
}
return new Decision(recipient,
RrtExecutionResult.success(recipient));
- } catch (Exception e) {
+ } catch (RecipientRewriteTable.ErrorMappingException e) {
LOGGER.warn("Could not rewrite recipient {}", recipient, e);
return new Decision(recipient,
RrtExecutionResult.error(recipient));
+ } catch (Exception e) {
+ throw new RuntimeException(e);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]