Re: [Evolution] "OR" statement in filter rules condition



On Tue, 2015-03-17 at 21:19 +0000, Justin Musgrove wrote:
In the message rules, is there a equivalent to an "OR" statement 
within a condition?

CentOS 7, Evo 3.8.5 "EWS"

        Hi,
not for your version, but the upcoming 3.16.0 has so called "Free form 
expressions" where you can combine 'and', 'or' and 'not' subparts. 
There might be a user manual entry for it, but at least the bug report 
link:
https://bugzilla.gnome.org/show_bug.cgi?id=550796#c10

Sender: Contains: email address
Subject: Contains: Schedule OR Plan OR Docket OR Program OR Agendum

This might look like:

   All conditions are met
   [ Sender ] [contains] [email]
   [ Free form expression ] [ or:(s:Schedule s:Plan s:Docket s:Program s:Agendum) ]

Alternatively, both as a free form expression only:

   and:(f:"email" or:(s:Schedule s:Plan s:Docket s:Program s:Agendum))

Anyway, this is 3.16.0+ material, making things easier.

Your version supports expressions too, but of a different syntax (not 
much different, but still). Make your filter rule look like:

   All conditions are met
   [ Sender ] [contains] [email]
   [ Expression ] [ or((header-contains "Subject" "Schedule") (header-contains "Subject" "Plan") 
(header-contains "Subject" "Docket") (header-contains "Subject" "Program") (header-contains "Subject" 
"Agendum")) ]

        Bye,
        Milan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]