Re: [Evolution] Mail filters and regex

On Mon, Jun 25, 2001 at 02:54:46PM +0930, Not Zed wrote:
On 22 Jun 2001 12:52:17 -0400, Jeffrey Stedfast wrote:
On 22 Jun 2001 09:57:13 -0400, John Affleck wrote:
[excessive snippage on the use of either regex or 'complicated'
expressions in mail filters.  Sorry.  It was hard to pick out the
relevant bits without context]

So, after some experimentation, I finally got this to work.  However,
I can't seem to get the [expression] or the regex method to work.

I'm trying to get a vfolder that contains mail from jaffleck with
either 'regression failure' or 'regression covermeter failure' in the

So I set up four vfolders, all with [if all criteria are met] selected:
- [sender] [contains] ["jaffleck"] [subject] [contains]
- [sender] [contains] ["jaffleck"] [expression]
        ["(header-contains "Subject" "regression failure"
        "regression covermeter failure")"]
- [sender] [contains] ["jaffleck"] [expression]
        ["(or (header-contains "Subject" "regression failure")
        (header-contains "Subject" "regression covermeter failure"))"]
- [sender] [contains] ["jaffleck"] [subject] [starts with] ["regression"]
        [subject] [ends with] ["failure"]

vfolder 1 is empty. Same for vfolder 2. vfolder 3 is also empty and generates:
Error while 'Synchronizing folder':
Error executing search expression: Invalid types in AND:
   (match-all (header-contains "From" "jaffleck"))
   (or (header-contains "Subject" "regression failure") (header-contains
   "Subject" "regression covermeter failure"))

vfolder 4 works OK.  I'm sure this is something wrong on my part, but
would it be possible to validate the expression before closing the
dialog box for missing parens or whatever ?

There seems to be some other issue with my install, where changes to
vfolder criteria only take affect when Evo is restarted, but that's
not consistent so I'm not sure what else to say about it.

Oh. This is evolution-0.10.99-snap.ximian.200106200800.

                Thanks again for the great work,

                John A.

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