[PATCH] devel: add dkg's printmimestructure script to notmuch devel scripts
[notmuch-archives.git] / 75 / f9e38ebacb8066e5d0677fe773171beefa9088
1 Return-Path: <amdragon@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 AFD6C431FB6\r
6         for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 13:26:30 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         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 f0xuKAsVzT-V for <notmuch@notmuchmail.org>;\r
17         Mon, 18 Apr 2011 13:26:30 -0700 (PDT)\r
18 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com\r
19         [209.85.216.53]) (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 1E21C431FB5\r
22         for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 13:26:30 -0700 (PDT)\r
23 Received: by qwb7 with SMTP id 7so4186562qwb.26\r
24         for <notmuch@notmuchmail.org>; Mon, 18 Apr 2011 13:26:27 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:mime-version:sender:in-reply-to:references:date\r
27         :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
28         :content-transfer-encoding;\r
29         bh=rnZcwoY3kITnJWdyfkD//+NY/yDyn94tmStbzWxmR2Q=;\r
30         b=Y8xS4VAtoMp6/1mZTlTWx2ntWrMXwjFEKCu4yNLILD62Ya9iM9OgSZMehOgKbllKla\r
31         Mb/qUaDYKgY/coGOC5n1yJ7wUNOdKjNjYa5ecIjT6NbJRy/FLQnJVTSJgKj+ZeFQZ8wD\r
32         2iu22Fz9nI6l7MqNa49tbWCVyxpHSvCuPoLIk=\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
34         h=mime-version:sender:in-reply-to:references:date\r
35         :x-google-sender-auth:message-id:subject:from:to:cc:content-type\r
36         :content-transfer-encoding;\r
37         b=yEHxo90EEu/f27+O31y7SxlwNXNqr0XNOSw5tlOvxdO21TlCj4z0hZCloHnIOQVjPc\r
38         ULUnqWM2YzhTywXBf03RYwwkdJ3hemEYRIqY4ezl1Bl8LtsswmYYYyy+oPA8Cz+beG7d\r
39         Y53ctttnkwaxP32g90gvJubuz3xv3LWK3WTdA=\r
40 MIME-Version: 1.0\r
41 Received: by 10.229.13.152 with SMTP id c24mr1346194qca.87.1303158387387; Mon,\r
42         18 Apr 2011 13:26:27 -0700 (PDT)\r
43 Sender: amdragon@gmail.com\r
44 Received: by 10.229.220.148 with HTTP; Mon, 18 Apr 2011 13:26:27 -0700 (PDT)\r
45 In-Reply-To: <878vv8hh3u.fsf@servo.factory.finestructure.net>\r
46 References: <8739ll8dkv.fsf@eve.chaoflow.net>\r
47         <87pqomgxr0.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me>\r
48         <878vv8hh3u.fsf@servo.factory.finestructure.net>\r
49 Date: Mon, 18 Apr 2011 16:26:27 -0400\r
50 X-Google-Sender-Auth: BLwI36JStVAzq-7NgMcXPEP_-1c\r
51 Message-ID: <BANLkTimfpvUhEf+UM_0TqwMdMTvzuUjzHw@mail.gmail.com>\r
52 Subject: Re: (auto-)tagging sent messages\r
53 From: Austin Clements <amdragon@mit.edu>\r
54 To: Jameson Graef Rollins <jrollins@finestructure.net>\r
55 Content-Type: text/plain; charset=ISO-8859-1\r
56 Content-Transfer-Encoding: quoted-printable\r
57 Cc: notmuch@notmuchmail.org\r
58 X-BeenThere: notmuch@notmuchmail.org\r
59 X-Mailman-Version: 2.1.13\r
60 Precedence: list\r
61 List-Id: "Use and development of the notmuch mail system."\r
62         <notmuch.notmuchmail.org>\r
63 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
65 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
66 List-Post: <mailto:notmuch@notmuchmail.org>\r
67 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
68 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
69         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
70 X-List-Received-Date: Mon, 18 Apr 2011 20:26:30 -0000\r
71 \r
72 On Sun, Apr 17, 2011 at 2:23 PM, Jameson Graef Rollins\r
73 <jrollins@finestructure.net> wrote:\r
74 > By giving "notmuch new" a path to a message in the store:\r
75 >\r
76 > =A0notmuch new /path/to/message\r
77 >\r
78 > By feeding "notmuch new" a message on stdin, and then having it write\r
79 > the message to a specified location:\r
80 >\r
81 > =A0notmuch new /path/to/maildir <message\r
82 >\r
83 > You could then add the ability to add tags at the time of index:\r
84 >\r
85 > =A0notmuch new +foo +bar /path/to/message\r
86 \r
87 I think passing specific messages or directories to notmuch new would\r
88 enable some nice features; beyond immediate indexing any tagging of\r
89 sent mail, it could be combined with inotify to immediately index any\r
90 new mail (something I've been meaning to play with but haven't yet).\r
91 \r
92 However, concurrency and atomicity have to be considered carefully\r
93 with any proposal like this.  For example,\r
94   notmuch new +foo +bar /path/to/message\r
95 has concurrency hazards: the caller has to store the message before\r
96 invoking notmuch new, but if the machine crashes between these two\r
97 operations, the message will be indexed with default tags on the next\r
98 notmuch new.  Similarly, a chance unrelated invocation of notmuch new\r
99 immediately after the message is stored would result in the new\r
100 message being indexed with default tags.\r