1 Return-Path: <tomi.ollila@iki.fi>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id B4428431FC0
\r
6 for <notmuch@notmuchmail.org>; Sat, 8 Dec 2012 17:53:42 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id WRyKEJNVIJNa for <notmuch@notmuchmail.org>;
\r
16 Sat, 8 Dec 2012 17:53:41 -0800 (PST)
\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id B98FC431FAE
\r
19 for <notmuch@notmuchmail.org>; Sat, 8 Dec 2012 17:53:41 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id 8B503100030;
\r
22 Sun, 9 Dec 2012 03:53:36 +0200 (EET)
\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
24 To: Jani Nikula <jani@nikula.org>,
\r
25 Jameson Graef Rollins <jrollins@finestructure.net>,
\r
26 David Bremner <david@tethera.net>, notmuch@notmuchmail.org
\r
27 Subject: Re: [PATCH] TODO: date range queries - check
\r
28 In-Reply-To: <87sj7gp43x.fsf@nikula.org>
\r
29 References: <1354833276-6219-1-git-send-email-jani@nikula.org>
\r
30 <877gouine4.fsf@servo.finestructure.net>
\r
31 <871uf2ukat.fsf@zancas.localnet>
\r
32 <877gothkzw.fsf@servo.finestructure.net>
\r
33 <87624dzgso.fsf@nikula.org>
\r
34 <87boe5fsdn.fsf@servo.finestructure.net>
\r
35 <87r4n0smot.fsf@zancas.localnet>
\r
36 <871uf0fdnh.fsf@servo.finestructure.net>
\r
37 <87sj7gp43x.fsf@nikula.org>
\r
38 User-Agent: Notmuch/0.14+116~g29fcdb5 (http://notmuchmail.org) Emacs/24.2.1
\r
39 (x86_64-unknown-linux-gnu)
\r
40 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
41 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
42 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
43 Date: Sun, 09 Dec 2012 03:53:36 +0200
\r
44 Message-ID: <m2wqws9ejj.fsf@guru.guru-group.fi>
\r
46 Content-Type: text/plain
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Sun, 09 Dec 2012 01:53:42 -0000
\r
61 On Sun, Dec 09 2012, Jani Nikula <jani@nikula.org> wrote:
\r
63 > On Sat, 08 Dec 2012, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
\r
64 >> On Sat, Dec 08 2012, David Bremner <david@tethera.net> wrote:
\r
65 >>> Patch? Concrete wording suggestion?
\r
69 >> It would be nice to not require both endpoints to be specified in date
\r
70 >> searches. For example it would be nice to be able to say things like
\r
71 >> "date:2009-01-1", to specify a search over a particular day, or
\r
72 >> "since:'1 month' to specify an open-ended range, and have the other
\r
73 >> endpoint be implicit. To do any of this we're probably going to need to
\r
74 >> break down an write our own parser for the query string rather than
\r
75 >> using Xapian's QueryParser class.
\r
77 > FWIW, this means, in practice:
\r
79 > Make date:<expr> an alias for date:<expr>..<expr>
\r
81 > Make since:<expr> an alias for date:<expr>..
\r
83 > Make until:<expr> an alias for date:..<expr>
\r
86 I personally don't desire since: and until: prefixes (and as not being
\r
87 native english speaker maybe more so)
\r
89 I'd like to also drop the 'date:' part (just for convenience, nothing
\r
90 against using english word there ;) and use only e.g. 1d.. (and so on).
\r
93 Actually I am (still) running my hacky wrapper which converts strings
\r
94 like '1d..' found in command line to '<seconds-since-epoc>..' before passing
\r
95 the command line to notmuch. I find it very convenient...
\r
97 e.g. IMHO ..yesterday would be more convenient than since:yesterday
\r
100 > We'll either need to write our own query parser or some new features to
\r
101 > upstream Xapian to do any of these.
\r