Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 5d / a66c8ed06cf76ff0811a81f683c8dbc4751c2b
1 Return-Path: <patricktotzke@googlemail.com>\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 DDEE5431FC3\r
6         for <notmuch@notmuchmail.org>; Sun, 26 Feb 2012 03:22:16 -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.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 KZ0Gje9KPFUP for <notmuch@notmuchmail.org>;\r
17         Sun, 26 Feb 2012 03:22:15 -0800 (PST)\r
18 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  2DBD6431FBD    for <notmuch@notmuchmail.org>; Sun, 26 Feb 2012 03:22:15 -0800\r
22  (PST)\r
23 Received: by wgbdt14 with SMTP id dt14so73678wgb.2\r
24         for <notmuch@notmuchmail.org>; Sun, 26 Feb 2012 03:22:12 -0800 (PST)\r
25 Received-SPF: pass (google.com: domain of patricktotzke@googlemail.com\r
26         designates 10.181.12.106 as permitted sender)\r
27         client-ip=10.181.12.106; \r
28 Authentication-Results: mr.google.com; spf=pass (google.com: domain of\r
29         patricktotzke@googlemail.com designates 10.181.12.106 as\r
30         permitted sender) smtp.mail=patricktotzke@googlemail.com;\r
31         dkim=pass header.i=patricktotzke@googlemail.com\r
32 Received: from mr.google.com ([10.181.12.106])\r
33         by 10.181.12.106 with SMTP id ep10mr9940226wid.8.1330255332645\r
34         (num_hops = 1); Sun, 26 Feb 2012 03:22:12 -0800 (PST)\r
35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
36         d=googlemail.com; s=gamma;\r
37         h=content-type:mime-version:content-transfer-encoding:from:user-agent\r
38         :to:references:in-reply-to:message-id:subject:date;\r
39         bh=6yBHCcEs10uCnZ7h4SDr8Y9eMAQqTlBeeSfhzWyHgSs=;\r
40         b=CTeSVb3rEUCj/Pg4BGZ5GfWAT51MIaeR1687WK2dP+AiwG7mSHXxTHoYalKX7lU3ye\r
41         NDl7TPMdsvJCU45tgJo4TSWCqG77FFDPDy4a+7yCsEoas5/Sp0wgsb5Z9smFzMFSdP13\r
42         SmCKUgJPJLiy4tTXQhVCrHQcyKg6l71VMtkhM=\r
43 Received: by 10.181.12.106 with SMTP id ep10mr7870558wid.8.1330255332569;\r
44         Sun, 26 Feb 2012 03:22:12 -0800 (PST)\r
45 Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com.\r
46         [82.41.10.37])\r
47         by mx.google.com with ESMTPS id gp8sm14843093wib.5.2012.02.26.03.22.11\r
48         (version=TLSv1/SSLv3 cipher=OTHER);\r
49         Sun, 26 Feb 2012 03:22:11 -0800 (PST)\r
50 Content-Type: text/plain; charset="utf-8"\r
51 MIME-Version: 1.0\r
52 Content-Transfer-Encoding: quoted-printable\r
53 From: Patrick Totzke <patricktotzke@googlemail.com>\r
54 User-Agent: alot/$VERSION\r
55 To: Daniel <quite@hack.org>,  notmuch@notmuchmail.org\r
56 References: <slrnjki3c7.tcm.quite@kelebek.lublin.se>\r
57 In-Reply-To: <slrnjki3c7.tcm.quite@kelebek.lublin.se>\r
58 Message-ID: <20120226112210.5422.8471@brick.lan>\r
59 Subject: Re: Replacing my name/email with "me" (or similar) in author lists\r
60 Date: Sun, 26 Feb 2012 11:22:10 +0000\r
61 X-BeenThere: notmuch@notmuchmail.org\r
62 X-Mailman-Version: 2.1.13\r
63 Precedence: list\r
64 List-Id: "Use and development of the notmuch mail system."\r
65         <notmuch.notmuchmail.org>\r
66 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
68 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
69 List-Post: <mailto:notmuch@notmuchmail.org>\r
70 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
71 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
72         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
73 X-List-Received-Date: Sun, 26 Feb 2012 11:22:17 -0000\r
74 \r
75 Quoting Daniel (2012-02-25 16:34:15)\r
76 >From what I understand, at least the Python bindings deliver primarily aut=\r
77 hor\r
78 >names (not addresses),\r
79 \r
80 To clarify, `notmuch.Thread.get_authors` returns a comma separated list of =\r
81 the =\r
82 \r
83 realname parts of all From-headers that occur in messages of this thread.\r
84 \r
85 > so it would seem more appropriate that this be done in the backend.\r
86 I agree. I personally think this is a nice feature to have in all\r
87 user interfaces to notmuch and therefore it makes sense to implement it once\r
88 in the lib. Also because ~/.notmuch-config already contains a list of my ad=\r
89 dresses\r
90 and therefore should have all information needed.\r
91 \r
92 Implementing this feature for alot in python is easily doable, by construct=\r
93 ing\r
94 the authors list from the messages From headers directly, comparing\r
95 the address part with all known own addresses.\r
96 We will do so if the response here is all too negative or nobody is brave e=\r
97 nough to\r
98 step forward and touch the lib in this respect.\r
99 \r
100 If I'm not mistaken, the lib extracts the authors name from the From-header\r
101 of a message, which is indexed. Somewhere around line 248 in thread.cc,\r
102 this string is added to a list of names.\r
103 \r
104 Cheers,\r
105 /p\r