User Tools

Site Tools


mdx_filters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
mdx_filters [2008/11/27 15:00] danielmdx_filters [2011/08/08 19:02] – [Examples] daniel
Line 30: Line 30:
  
 ====== Examples ====== ====== Examples ======
 +
 +These are examples of expressions that can be used in a filter (the filter actions being triggered when the expression evaluates to true).
 +
 +  - From or to any address of a domain (dom.tld): <code>header("From") contains "@dom.tld" OR header("To") contains "@dom.tld"</code>
 +  - Spam detected by spamassassin:  <code>header("X-Spam-Flag") eq "YES"</code>
 +  - 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>
  
 ====== Restrictions ====== ====== Restrictions ======
 As of 0.9.11 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.   * Filters can't be applied retroactively, that is, applied to messages that existed before the filter was defined or modified.
-  * A user can't change the order of the conditions with the UI+  * The order of the conditions can't be changed within the user interface
-  * The UI 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.+  * 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.
  
  
mdx_filters.txt · Last modified: 2012/01/28 02:28 by daniel