JAMES-2366 Explicitly allow RRT Forward copy to base recipient
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/ed5b9f88 Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/ed5b9f88 Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/ed5b9f88 Branch: refs/heads/master Commit: ed5b9f880d975b34d441ce63ff6520335c837ae9 Parents: 6368cb0 Author: benwa <btell...@linagora.com> Authored: Mon Apr 16 15:07:59 2018 +0700 Committer: Matthieu Baechler <matth...@apache.org> Committed: Tue Apr 24 14:45:26 2018 +0200 ---------------------------------------------------------------------- .../org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/ed5b9f88/server/data/data-library/src/main/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java ---------------------------------------------------------------------- diff --git a/server/data/data-library/src/main/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java b/server/data/data-library/src/main/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java index 134f57c..69370c6 100644 --- a/server/data/data-library/src/main/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java +++ b/server/data/data-library/src/main/java/org/apache/james/rrt/lib/AbstractRecipientRewriteTable.java @@ -142,6 +142,10 @@ public abstract class AbstractRecipientRewriteTable implements RecipientRewriteT // Check if the returned mapping is the same as the // input. If so return null to avoid loops if (userName.equalsIgnoreCase(user) && targetDomain.equals(domain)) { + if (type.equals(Type.Forward)) { + mappings.add(toMapping(addressWithMappingApplied, type)); + continue; + } return MappingsImpl.empty(); } --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org