james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [2/5] james-jsieve git commit: JSIEVE-107 Unfold headers for address matching
Date Tue, 14 Mar 2017 06:23:15 GMT
JSIEVE-107 Unfold headers for address matching


Project: http://git-wip-us.apache.org/repos/asf/james-jsieve/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-jsieve/commit/b79a70cb
Tree: http://git-wip-us.apache.org/repos/asf/james-jsieve/tree/b79a70cb
Diff: http://git-wip-us.apache.org/repos/asf/james-jsieve/diff/b79a70cb

Branch: refs/heads/JSIEVE-107
Commit: b79a70cb3381071c5c2cefb8bae523e083cd3133
Parents: da2d09e
Author: Daniele Depetrini <daniele.depetrini@infocert.it>
Authored: Tue Apr 26 17:30:34 2016 +0200
Committer: Laura Royet <lroyet@linagora.com>
Committed: Thu Jan 12 09:21:15 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/jsieve/util/check/ScriptCheckMailAdapter.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-jsieve/blob/b79a70cb/util/src/main/java/org/apache/jsieve/util/check/ScriptCheckMailAdapter.java
----------------------------------------------------------------------
diff --git a/util/src/main/java/org/apache/jsieve/util/check/ScriptCheckMailAdapter.java b/util/src/main/java/org/apache/jsieve/util/check/ScriptCheckMailAdapter.java
index 1f81402..fbb71c9 100644
--- a/util/src/main/java/org/apache/jsieve/util/check/ScriptCheckMailAdapter.java
+++ b/util/src/main/java/org/apache/jsieve/util/check/ScriptCheckMailAdapter.java
@@ -265,7 +265,7 @@ public class ScriptCheckMailAdapter implements MailAdapter {
                 final Header header = (Header) en.nextElement();
                 final String name = header.getName();
                 if (name.trim().equalsIgnoreCase(headerName)) {
-                    builder.addAddresses(header.getValue());
+                    builder.addAddresses(MimeUtility.unfold(header.getValue()));
                 }
             }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message