Compare only date when searching with Sent/Received dates
I have a regular need to search for emails that either were sent on a particular date or were received on that same date. To do this I tried creating a rule that would allow me to find emails I had received or sent on the 10th May 2018. I filled out the search rule like this:
Rule name: Between Dates Find items which match: any of the following conditions Include threads: All related Date sent is 10-May-2018 Date received is 10-May-2018
When I saved and ran this rule it came back with no results. I know there definitely are plenty of emails that should have been returned by that rule as I found them manually searching the individual folders.
I posted this issue initially on the Evolution mailing list and was asked by Milan Crha to post it here as a bug. Milan pointed out that the reason it's failing is that the search is taking the date 2018-05-10 as 2018-05-10 00:00:00 which of course is unlikely to match any of the date and times of the emails I am looking for, what it should be doing internally I assume is say find emails where date is 2018-05-10 and times are between 00:00:00 and 23:59:59. Or maybe the date is between 2018-05-10 and 2010-05-11 if the date is always assumed to be 00:00:00 as this would return all emails in the date and time range >= 2018-05-10 00:00:00 and < 2018-05-11 00:00:00. That way you don't have to worry about the time portion as long as they are between these two values I would get the results I expect.