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 bt...@apache.org on 2016/08/18 10:19:32 UTC

[09/10] james-project git commit: JAMES-1773 Document possibility to match header value

JAMES-1773 Document possibility to match header value


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

Branch: refs/heads/master
Commit: 80a2ca89d7c453ed7810d44f3eff96dade5c2b8b
Parents: 1b9a107
Author: Benoit Tellier <bt...@linagora.com>
Authored: Tue Aug 9 11:52:37 2016 +0700
Committer: Benoit Tellier <bt...@linagora.com>
Committed: Thu Aug 18 17:18:15 2016 +0700

----------------------------------------------------------------------
 server/src/site/xdoc/dev-provided-matchers.xml | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/80a2ca89/server/src/site/xdoc/dev-provided-matchers.xml
----------------------------------------------------------------------
diff --git a/server/src/site/xdoc/dev-provided-matchers.xml b/server/src/site/xdoc/dev-provided-matchers.xml
index 0752002..cd18a91 100644
--- a/server/src/site/xdoc/dev-provided-matchers.xml
+++ b/server/src/site/xdoc/dev-provided-matchers.xml
@@ -119,7 +119,22 @@
                         &lt;mailet match="HasHeader=headerName" class=&quot;&lt;any-class&gt;&quot;&gt;
                     </code></pre>
                 </p>
-
+                <p>
+                    One can additionally specify a header value associated with the header name. You can do something like :
+                    <pre><code>
+                        &lt;mailet match="HasHeader=headerName=headerValue" class=&quot;&lt;any-class&gt;&quot;&gt;
+                    </code></pre>
+                </p>
+                <p>
+                    You can verify several headers at once. They should all be matching. To do so, separate your conditions using "+" :
+                    <pre><code>
+                        &lt;mailet match="HasHeader=headerName1+headerName2=value" class=&quot;&lt;any-class&gt;&quot;&gt;
+                    </code></pre>
+                </p>
+                <p>
+                    Note: If the header you are matching against is present several time in the received mail, then it is
+                    considered as matching if the specified value is present on one line.
+                </p>
             </subsection>
 
             <subsection name="HasMailAttribute">


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