Re: [PATCH v3 15/16] added notmuch_message_reindex
[notmuch-archives.git] / 07 / 41d69f92a8f2591b54050c611c85532e0c0e74
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 5A77F431FBC\r
6         for <notmuch@notmuchmail.org>; Sun, 26 Feb 2012 23:45:03 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\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 iR8wIXAb87yg for <notmuch@notmuchmail.org>;\r
16         Sun, 26 Feb 2012 23:45:02 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
18         by olra.theworths.org (Postfix) with ESMTP id 64ACB431FAF\r
19         for <notmuch@notmuchmail.org>; Sun, 26 Feb 2012 23:45:02 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 1CF8D68055; Mon, 27 Feb 2012 09:45:01 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
24 Subject: Re: [RFC PATCH 0/2] natural language date range search\r
25 In-Reply-To: <87ehtiitag.fsf@nikula.org>\r
26 References: <cover.1329689945.git.jani@nikula.org>\r
27         <m2mx87j6lz.fsf@guru.guru-group.fi> <87ehtiitag.fsf@nikula.org>\r
28 User-Agent: Notmuch/0.11.1+225~g90fb4e8 (http://notmuchmail.org) Emacs/23.3.1\r
29         (x86_64-unknown-linux-gnu)\r
30 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
31         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
32         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
33 Date: Mon, 27 Feb 2012 09:45:01 +0200\r
34 Message-ID: <m2ty2cd8jm.fsf@guru.guru-group.fi>\r
35 MIME-Version: 1.0\r
36 Content-Type: text/plain; charset=us-ascii\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.13\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Mon, 27 Feb 2012 07:45:03 -0000\r
50 \r
51 On Sat, 25 Feb 2012 21:53:27 +0200, Jani Nikula <jani@nikula.org> wrote:\r
52 > On Sat, 25 Feb 2012 17:05:44 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
53 \r
54 [ ... ]\r
55 \r
56 > > \r
57 > > By seeing the thoughts thrown in IRC there seems to be plenty if things\r
58 > > to resolve until something like this is going to be available in stock\r
59 > > notmuch. In the meanwhile I provide some ideas into the soup; maybe\r
60 > > our collective mind can have some use of this.\r
61 > > \r
62 > > \r
63 > > Q: Could 'date:timestr' be converted to 'date:timestr..timestr' ?\r
64\r
65 > AFAICT this would require the custom query parser.\r
66 \r
67 So, maybe someday... :)\r
68 \r
69 > > In this idea -<timestr> means relative time and <timestr> absolute\r
70 > > time. The the time string consists of number and letter and assume\r
71 > > the above suggestion for date:timestr (<- == date:timestr..timestr)\r
72 > > Letters are s seconds  h hours  d days  w weeks  m months (more\r
73 > > useful than for minutes) and  y years.\r
74\r
75 > I'll put it bluntly: show me the code! ;)\r
76 \r
77 I would not have expected nothing less ;)\r
78 \r
79 > I'll comment below how your examples can be expressed with working code\r
80 > in this series, just for comparison, and to show what can be done with\r
81 > this.\r
82 \r
83 Great! Those features suits to my needs just fine; last day is most often\r
84 needed, then parhaps I jump to one week. 5w is good for ~one month. \r
85 More "absolute" times (like last november / since last november) are so\r
86 seldomly needed that writing a bit more is not an issue :D\r
87 \r
88 [ ... ]\r
89 \r
90\r
91 > BR,\r
92 > Jani.\r
93 \r
94 Tomi\r