azynheira / mu0

Automatically exported from code.google.com/p/mu0
0 stars 0 forks source link

date-range not working correctly? #73

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I have an email with "Date: Sun, 1 Jul 2012 18:09:15 +0200" in my maildir.
I want to filter emails quarterly. Now I do:

mu index -m ./mails --rebuild
echo Q2
mu find date:201204..201206
echo Q3
mu find date:201207..201209

What is the expected output? What do you see instead?

The actual output is:

Q3
Sun Jul  1 18:09:15 2012 heinz <heinz@example.com> test123
Q4
Sun Jul  1 18:09:15 2012 heinz <heinz@example.com> test123

The expected output would be 

Q3
Q4
Sun Jul  1 18:09:15 2012 heinz <heinz@example.com> test123

This happens with CEST and UTC timezone.

What version of the product are you using? On what operating system?

mu --version
mu (mail indexer/searcher) version 0.9.9.5

Tested on OSX 10.8.3 and Debian squeeze.

Please provide any additional information below.

Please see the attached tgz with a script to reproduce.

Original issue reported on code.google.com by sebastia...@gmail.com on 11 Apr 2013 at 10:40

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, it's a bit tricky; it uses the end of last day of 201206xx, ie. the end of 
the last day of June. However, since we use UTC, in the +0200 timezone we're 
already one day further, so instead we take the end of 20120701 - which is 
201207012359 minus the -0200.

Maybe I should make it a bit simpler...

Original comment by digg...@gmail.com on 14 Aug 2013 at 7:16