You are not logged in.
I am trying out Evolution as an alternative mail client. I have it mostly working as I would like after some time changing settings, but there is one issue that I have spent a lot of time trying to search the existing documentation as well as on the web and forums, and still have not found the solution. This concerns setting a mail filter that simply finds two components within the Authentication-Results header of an incoming mail, and colouring the mail if that condition is met. I tried a simple rule for the 'specific header' being Authentication-Results and this had to 'contain' the string 'dmarc=pass' which I entered without the quotes in the box on the right of the rule selected as 'contains'. This works fine and the mails are coloured as I would like. What I would like is to amend the rule so that the same header contains not just 'dmarc=pass' but also mx.google.com - but I have been unable to find the regex in that box that allows the rule to work for anything other than a single string in that box. Has anyone had any success doing this with Evolution filters? I would appreciate any pointer that might lead to success.
Last edited by mcloaked (2023-12-13 11:27:38)
Mike C
Offline
Hi,
probably I misunderstand you. You can add additional conditions, so you can add each string into it's own box. On top you can select if the item should fit any or all of the below conditions.
If you want that all with dmarc=pass and all with dmarc=pass & mx.google.com get filtered, but not those with mx.google.com only, you need to make two filters.
Regards,
Ralf
Offline
I have now solved the issue after quite a lot of playing around with free-form expressions - what I wanted was a single rule that required for any mail where, within the Authentication-Results header, there was both the strings mx.google.com as well as dmarc=pass. I finally the single free-form expression that achieves this and within the filter for any mail that satisfies this condition I colour the mail with a chosen colour - anyway if anyone else wants to do this, the expression that works is as follows:
and:(h:Authentication-Results=mx.google.com h:Authentication-Results=dmarc=pass)
There is clearly a very flexible range of expressions that can satisfy almost any requirement in the mail filter rule apart from the standard options in the available list for the filters. I will mark this as solved.
Mike C
Offline