You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ma...@apache.org on 2018/04/24 12:50:37 UTC

[08/27] james-project git commit: JAMES-2366 Explicitly allow RRT Forward copy to base recipient

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 <bt...@linagora.com>
Authored: Mon Apr 16 15:07:59 2018 +0700
Committer: Matthieu Baechler <ma...@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-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org