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 <[email protected]> Authored: Tue Aug 9 11:52:37 2016 +0700 Committer: Benoit Tellier <[email protected]> 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 @@ <mailet match="HasHeader=headerName" class="<any-class>"> </code></pre> </p> - + <p> + One can additionally specify a header value associated with the header name. You can do something like : + <pre><code> + <mailet match="HasHeader=headerName=headerValue" class="<any-class>"> + </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> + <mailet match="HasHeader=headerName1+headerName2=value" class="<any-class>"> + </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: [email protected] For additional commands, e-mail: [email protected]
