Re: Linking a privately built -lxapian
[notmuch-archives.git] / 7d / 55bc2b8a2cd300153076dc5f8744e608180eb9
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 03910431FB6\r
6         for <notmuch@notmuchmail.org>; Fri,  7 Mar 2014 03:54:04 -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 QivQH+Haajgk for <notmuch@notmuchmail.org>;\r
16         Fri,  7 Mar 2014 03:53:52 -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 9D456431FAE\r
19         for <notmuch@notmuchmail.org>; Fri,  7 Mar 2014 03:53:52 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id C6A0410008F;\r
22         Fri,  7 Mar 2014 13:53:44 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Adam Wolfe Gordon <awg+notmuch@xvx.ca>, Austin Clements <amdragon@mit.edu>\r
25 Subject: Re: [PATCH] notmuch new: add a --in-directory option\r
26 In-Reply-To:\r
27  <CAMoJFUsEPJ+e1KfVpvzYx1owzyf4mYhc-YYg+T81PytpQ4Q4hw@mail.gmail.com>\r
28 References: <1394139507-15324-1-git-send-email-markwalters1009@gmail.com>\r
29         <20140306210622.GI4709@mit.edu>\r
30         <CAMoJFUsEPJ+e1KfVpvzYx1owzyf4mYhc-YYg+T81PytpQ4Q4hw@mail.gmail.com>\r
31 User-Agent: Notmuch/0.17+112~g4e0c1d5 (http://notmuchmail.org) Emacs/24.3.1\r
32         (x86_64-unknown-linux-gnu)\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
34         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
35         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
36 Date: Fri, 07 Mar 2014 13:53:44 +0200\r
37 Message-ID: <m238iu9qd3.fsf@guru.guru-group.fi>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\r
40 Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Fri, 07 Mar 2014 11:54:04 -0000\r
54 \r
55 On Thu, Mar 06 2014, Adam Wolfe Gordon <awg+notmuch@xvx.ca> wrote:\r
56 \r
57 > On Thu, Mar 6, 2014 at 2:06 PM, Austin Clements <amdragon@mit.edu> wrote:\r
58 >> That aside, I'm curious what the use case for this is.\r
59 \r
60 I am also interested... How are mails delivered so that\r
61 --in-directory=folder is useful\r
62 \r
63 >\r
64 > My usecase for this is the same as for the similar patch I worked on\r
65 > previously (id:1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca):\r
66 \r
67 ... as this is (much more) interesting to me too ...\r
68 \r
69 \r
70 > I use inotify to watch for new messages in my maildir. When I receive\r
71 > a new message, I run notmuch new (after waiting a couple of seconds\r
72 > since messages sometimes arrive in batches). But since I already know\r
73 > exactly what changed, there's no need for notmuch new to scan the\r
74 > whole directory tree. I'm not sure whether this patch lets me specify\r
75 > a file, or only a directory: the former would be preferable for my\r
76 > usecase, but either way it's probably an enhancement for me.\r
77 \r
78 my mails are delivered by\r
79 https://github.com/domo141/nottoomuch/blob/master/md5mda.sh\r
80 to ~/mail/received/??/??????????????????????????????\r
81 and log to the deliveries are kept:\r
82 \r
83 $ echo; tail -5 mail/log/md5mda-201403.log\r
84 \r
85 2014-03-07 (Fri) 11:58:37: Added 'received/a8/5bb1949aa85bb84287499555dabb00'\r
86 2014-03-07 (Fri) 12:33:57: Added 'received/34/b786dabccc980b3b651e85f3d7fd48'\r
87 2014-03-07 (Fri) 12:35:01: Added 'received/c0/e89f83383d066cc922512dc5eddb5d'\r
88 2014-03-07 (Fri) 13:04:32: Added 'received/f5/ff8b132d3c4f8ca63215d8de41de9c'\r
89 2014-03-07 (Fri) 13:25:00: Added 'received/9a/848dd40274fe5b6d6bcbad80b2e7fd'\r
90 \r
91 >From that information I could launch notmuch new [files...] \r
92 (or notmuch new --batch !) to index all files since last attempt(*)\r
93 \r
94 \r
95 Tomi\r
96 \r
97 \r
98 (*) routine would be: \r
99         1) get size of last log file (for final stored offset)\r
100         2) read the info of last read log file and offset\r
101         3) feed the filenames between these 2 offsets.\r
102         4) update the final stored offset\r
103         5) check whether the size (or name) of the last log \r
104            file has changed and if had, go step 2\r
105 \r
106 > -- Adam\r
107 \r
108 Tomi\r