Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 2a / 2caa8d982716b305ba6c503703ce4b505f372f
1 Return-Path: <novalazy@gmail.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 13BA9429E36\r
6         for <notmuch@notmuchmail.org>; Sun, 12 Jan 2014 13:08:52 -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.099\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.099 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_NONE=-0.0001] 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 CjuKGYw8FT5y for <notmuch@notmuchmail.org>;\r
17         Sun, 12 Jan 2014 13:08:44 -0800 (PST)\r
18 Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com\r
19         [209.85.192.178]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 985E8429E2F\r
22         for <notmuch@notmuchmail.org>; Sun, 12 Jan 2014 13:08:44 -0800 (PST)\r
23 Received: by mail-pd0-f178.google.com with SMTP id v10so131037pde.9\r
24         for <notmuch@notmuchmail.org>; Sun, 12 Jan 2014 13:08:42 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=date:message-id:from:to:cc:subject:in-reply-to:references\r
27         :mime-version:content-type:content-disposition\r
28         :content-transfer-encoding;\r
29         bh=W/wnqkcv36X2bzLd75ma5eD9q7LCzMqrCf8GtHDWBXQ=;\r
30         b=ye9py7dDqUavMqF7/pkddxAnOj0NzjDduojDVUrcYcN1JCzCv8uziJPbsC8Zmw0wPq\r
31         BOcpQg+ABE7kXGsq8qCk1DalBmLwHv7lzD/maaM95AgPTP2OgILcqV7lxQwPlOtv55An\r
32         5yP8DFouJWhLwGanrBFEGX4vYFsaGRZLSyMDIO4krtb73ilkrot846CBmlwm3ywE9uBt\r
33         uE7TPI5tdGFpDtfDkpUdL9u6ykAuTRak5zBGNZfyhefsEmIYnKrD2pXuT1NC6coRoBWc\r
34         1KCqai/dqRHP/SWbhklVi0qeRNCk6YEMEhp2j1KsVhKFwtQ+v9oztMwjBfP6FFuIpnWF\r
35         oPvg==\r
36 X-Received: by 10.68.92.98 with SMTP id cl2mr25595444pbb.81.1389560922571;\r
37         Sun, 12 Jan 2014 13:08:42 -0800 (PST)\r
38 Received: from localhost (215.42.233.220.static.exetel.com.au.\r
39         [220.233.42.215]) by mx.google.com with ESMTPSA id\r
40         gv10sm32962664pbd.0.2014.01.12.13.08.39 for <multiple recipients>\r
41         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
42         Sun, 12 Jan 2014 13:08:41 -0800 (PST)\r
43 Date: Mon, 13 Jan 2014 08:08:36 +1100\r
44 Message-ID: <20140113080836.GA1138@hili.localdomain>\r
45 From: Peter Wang <novalazy@gmail.com>\r
46 To: Jani Nikula <jani@nikula.org>\r
47 Subject: Re: [PATCH] show: add In-reply-to,\r
48         References fields to structured formats\r
49 In-Reply-To: <878uulush7.fsf@nikula.org>\r
50 References: <1389502800-9237-1-git-send-email-novalazy@gmail.com>\r
51         <878uulush7.fsf@nikula.org>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=utf-8\r
54 Content-Disposition: inline\r
55 Content-Transfer-Encoding: 8bit\r
56 Cc: notmuch@notmuchmail.org\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Sun, 12 Jan 2014 21:08:52 -0000\r
70 \r
71 On Sun, 12 Jan 2014 17:31:32 +0200, Jani Nikula <jani@nikula.org> wrote:\r
72 > On Sun, 12 Jan 2014, Peter Wang <novalazy@gmail.com> wrote:\r
73 > > This is useful when 'show' is used to retrieve a draft message\r
74 > > which is in reply to another message.\r
75\r
76 > I'd like to know more about *how* this is useful. Indeed the whole big\r
77 > picture about supporting draft or postponed messages is foggy. I would\r
78 > like to have some clarity about that first.\r
79\r
80 > Apparently the idea is to index draft messages. How do you save them?\r
81 > What guarantees are there that they look enough like real messages that\r
82 > they get indexed? Does this patch mean that the idea is to resume draft\r
83 > messages using the structured formats instead of opening the raw file?\r
84 > Why?  What do you plan to do with the saved draft? And so on...\r
85 \r
86 I didn't realise storing drafts in your Maildir was unusual.\r
87 \r
88 A draft message (including its attachments) may be added to a Maildir\r
89 folder with notmuch insert or notmuch-deliver, and then tagged.\r
90 The message must look enough like a real message for indexing but it is\r
91 not hard for an email client to arrange -- the message is ostensibly to\r
92 be sent anyway.  Unlike saving in a local file, keeping the draft in a\r
93 central mail store means it will be accessible anywhere that you can\r
94 access the rest of your mail.\r
95 \r
96 Draft messages may be retrieved for previewing or resumption with\r
97 notmuch show, like other messages.  The raw file may be on another\r
98 machine so it is not always possible to read it directly.  The advantage\r
99 of using a structured output format instead of the raw output format is\r
100 the same as for any other message -- notmuch has already parsed it for\r
101 you.  The disadvantage is that notmuch show's structured output only\r
102 presents a subset of headers, so other headers will be lost.\r
103 (This suggests an alternative change if notmuch maintainers are\r
104 receptive.)\r
105 \r
106 Indexed draft messages will, by default, show up in normal display\r
107 so they will need to be hidden with notmuch search exclusions.\r
108 Drafts may tagged with 'delete' for eventual removal.\r
109 \r
110 Peter\r