Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
mdx_filters [2009/07/09 17:43] – daniel | mdx_filters [2012/01/28 02:28] (current) – [Restrictions] daniel |
---|
====== Examples ====== | ====== Examples ====== |
| |
====== Restrictions ====== | These are examples of expressions that can be used in a filter (the filter actions being triggered when the expression evaluates to true). |
As of 0.9.11 | |
* Filters can't be applied retroactively, that is, applied to messages that existed before the filter was defined or modified. | - From or to any address of a domain (dom.tld): <code>header("From") contains "@dom.tld" OR header("To") contains "@dom.tld"</code> |
* The order of the conditions can't be changed within the user interface. | - Spam detected by spamassassin: <code>header("X-Spam-Flag") eq "YES"</code> |
* The user interface doesn't check the expressions for correctness, nor provides any way to test filters. If an expression is invalid and gets used by manitou-mdx during the filtering step, only then will it fail. | - From a mailing list: <code>header("List-Post") eq "<mailto:dbd-pg@perl.org>"</code> |
| - With a specific subject and sender: <code>header("subject") eq "Your Bugzilla buglist needs attention." AND header("From") eq "bugzilla-daemon@domain.tld"</code> |
| |
| |