JSIEVE-107 Unfold headers for address matching
authorDaniele Depetrini <daniele.depetrini@infocert.it>
Tue, 26 Apr 2016 15:30:34 +0000 (17:30 +0200)
committerbenwa <btellier@linagora.com>
Tue, 22 Aug 2017 08:53:23 +0000 (15:53 +0700)
util/src/main/java/org/apache/jsieve/util/check/ScriptCheckMailAdapter.java

index 1f81402..fbb71c9 100644 (file)
@@ -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()));
                 }
             }