You need (match-all ) around the bare or's.

Use version 2 with (match-all ) around it.  That should work, if not its
a bug, but to work around just use match-all around the or.

I was going to mention that last time, but i wasn't sure if
header-contains operated in a list context.

On 25 Jun 2001 08:45:48 -0400, John Affleck wrote:
> 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
> subject.
> 
> So I set up four vfolders, all with [if all criteria are met] selected:
> - [sender] [contains] ["jaffleck"] [subject] [contains]
>       ["regression.*failure"]
> - [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:
>   (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.



_______________________________________________
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution

Reply via email to