Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / a4 / af917e1f1bd9f16c1d515dd8bf26c8832d1297
1 Return-Path: <piuttosto@logorroici.org>\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 A4F0B429E27\r
6         for <notmuch@notmuchmail.org>; Thu,  5 Jan 2012 07:38:11 -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.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.9 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FORGED_RELAY_MUA_TO_MX=1] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id F-JkOXs5yMjW for <notmuch@notmuchmail.org>;\r
17         Thu,  5 Jan 2012 07:38:11 -0800 (PST)\r
18 Received: from confino.investici.org (investici.nine.ch [217.150.252.179])\r
19         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id EB3F1429E21\r
22         for <notmuch@notmuchmail.org>; Thu,  5 Jan 2012 07:38:10 -0800 (PST)\r
23 Received: from [217.150.252.179] (confino [217.150.252.179]) (Authenticated\r
24         sender: piuttosto@logorroici.org) by localhost (Postfix) with\r
25         ESMTPSA id 59471C8655\r
26         for <notmuch@notmuchmail.org>; Thu,  5 Jan 2012 15:38:08 +0000 (UTC)\r
27 X-DKIM: Sendmail DKIM Filter v2.8.2 confino.investici.org 59471C8655\r
28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=logorroici.org;\r
29         s=stigmate; t=1325777888;\r
30         bh=tEJaOU48wbCBgIbgaOVqHMmySqutRWdiWWglz32D2gE=;\r
31         h=Date:From:To:Subject:Message-ID:References:MIME-Version:\r
32         Content-Type:In-Reply-To;\r
33         b=VAGXQNjGladihjXghGXkel4LQRe2hxDV3TdttdqqJa/6qtFX+KwmD89psfYvwPTot\r
34         Ta5CLtqrmFWhzrVNZ4oqSN1G9ccWz++NTZdm3oNNoJw54T31+H2ORoIJzc/aaNafLR\r
35         7Uwkkm3+9oBfZj04mSH/YoVWm3HMloOopJgSxMhM=\r
36 Date: Thu, 5 Jan 2012 16:38:07 +0100\r
37 From: boyska <piuttosto@logorroici.org>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: Re: Info about notmuch database\r
40 Message-ID: <20120105153748.GA13888@edge>\r
41 Mail-Followup-To: notmuch@notmuchmail.org\r
42 References: <4e39a92bc2136f12ae6924e8878d5d1a@logorroici.org>\r
43         <87fwfup4w9.fsf@thor.loria.fr>\r
44 MIME-Version: 1.0\r
45 Content-Type: text/plain; charset=us-ascii\r
46 Content-Disposition: inline\r
47 In-Reply-To: <87fwfup4w9.fsf@thor.loria.fr>\r
48 User-Agent: Mutt/1.5.21 (2010-09-15)\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.13\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53         <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Thu, 05 Jan 2012 15:38:11 -0000\r
62 \r
63 On Thu, Jan 05, 2012 at 04:04:22PM +0100, Thomas Jost wrote:\r
64 > On Wed, 04 Jan 2012 15:49:19 +0000, boyska <piuttosto@logorroici.org> wrote:\r
65 > > Hello!\r
66 > > I like notmuch a lot, so I'm writing a (conceptually) similar software\r
67 > > about addressbook: it will scan all your emails, storing email \r
68 > > addresses\r
69 > > in a xapian database (you can think of it as little brother database[1] \r
70 > > on\r
71 > > steroids)\r
72 > > The part that I'd like to re-implement is "notmuch new": it seems that\r
73 > > in the xapian db there is not only informations about each mail, but\r
74 > > also the mtime of each directory. My impression is this being \r
75 > > "chaotic",\r
76 > > but probably I am just missing the point.\r
77 > > \r
78 > > So, here's the question: how is the db "structured"? is there any\r
79 > > documentation to look at?\r
80 > > \r
81 > > [1] http://www.spinnaker.de/lbdb/\r
82 > > \r
83 > > -- \r
84 > > boyska\r
85 > > GPG: 0x520CE393\r
86\r
87 > There's a description of the DB "schema" in lib/database.cc in the\r
88 > notmuch source code. But you may also consider just using libnotmuch\r
89 > instead, if that's enough for what you want to do.\r
90 \r
91 thanks, found it, much clearer now.\r
92 But I really can't understand why not just putting these things on a\r
93 separate file :) atomic consistency issues?\r
94 \r
95 > Also: why Xapian? I'm already using something similar I wrote with\r
96 > Python, storing everything in a dictionary, using Pickle to save that to\r
97 > disk: 162 lines of code and 45 kb of data are enough to store my\r
98 > addressbook and have completion in Emacs...\r
99 \r
100 dictionary approach is fine to manage a "manual" addressbook, where you\r
101 store addresses. But what I want is an _automatic_ addressbook, like the\r
102 lbdb one, which just indexes all seen emails.\r
103 The grep approach is better from this point of view, but still not\r
104 advanced enough for me.\r
105 For example, I'd like to store "cooccorrences": if some email is used in\r
106 the same mail of some other, then it must contain a relationship; for\r
107 example, your email should be correlated to the notmuch mailinglist,\r
108 because you wrote to it. (they should be 0-weighted xapian term).  Also,\r
109 I want to give more importance to email addresses which are frequently\r
110 seen, and much less to not-so-frequently seen. Xapian makes these really\r
111 easy, so the question is "why not using it?" ;)\r