Subject: [sup-talk] Searching for after:(Jan 2008) before:(Feb 2008) yields nothing

From: [email-masked] (Nicolas Pouillard)
Date: Sat, 15 Nov 2008 18:53:26 +0100

Maybe others could confirm that before this issue to be merged...

---

From: [email-masked] (Nicolas Pouillard)
Date: Sat, 15 Nov 2008 18:53:27 +0100

---
 ...e-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml |   21 ++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml

diff --git a/bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml b/bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml
new file mode 100644
index 0000000..7f86474
--- /dev/null
+++ b/bugs/issue-3ca7867637ab10e2433285a056fd326bbc61e84a.yaml
@@ -0,0 +1,21 @@
+--- !ditz.rubyforge.org,2008-03-06/issue 
+title: Searching for after:(Jan 2008) before:(Feb 2008) yields nothing
+desc: |-
+  When I try these two parts separately it works however.
+  Moreover in that case during:(Jan 2008) is sufficient.
+type: :bugfix
+component: indexing
+release: 
+reporter: Nicolas Pouillard <nicolas.pouillard at gmail.com>
+status: :unstarted
+disposition: 
+creation_time: 2008-11-15 17:47:46.194105 Z
+references: []
+
+id: 3ca7867637ab10e2433285a056fd326bbc61e84a
+log_events: 
+- - 2008-11-15 17:47:46.469898 Z
+  - Nicolas Pouillard <nicolas.pouillard at gmail.com>
+  - created
+  - ""
+git_branch: 
-- 
1.5.5.rc3

---

From: [email-masked] (marcus-sup)
Date: Sat, 15 Nov 2008 22:16:19 +0000

> Maybe others could confirm that before this issue to be merged...

It was deliberate - after:(jan 2008) means all email after the _end_
of jan 2008, before:(feb 2008) means all email before the _beginning_
of feb 2008. So there wouldnt be any email in the period in between :)

It uses the date ranges chronic gives back to get the beginning/end of
the date period parsed.

Marcus

---

From: [email-masked] (William Morgan)
Date: Sat, 15 Nov 2008 16:02:33 -0800

> of feb 2008. So there wouldnt be any email in the period in between :)

Yep, I think this is the correct behavior. You can see the chronic
interpretations in the log buffer, and you can use in:(jan 2008) to get
what (I think) you're looking for.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Nicolas Pouillard)
Date: Sun, 16 Nov 2008 11:32:26 +0100

> what (I think) you're looking for.

Fine

-- 
Nicolas Pouillard aka Ertai