[PATCH v2 1/2] test: Replying to an HTML-only message in emacs
[notmuch-archives.git] / fd / bed2df049011d12f5625ddaf181326d0f4c85b
1 Return-Path: <dkg@fifthhorseman.net>\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 1B2BC40DAE5\r
6         for <notmuch@notmuchmail.org>; Tue, 16 Nov 2010 12:37:47 -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: -1.899\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, UNPARSEABLE_RELAY=0.001] autolearn=ham\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 5-CV3VshMTNC for <notmuch@notmuchmail.org>;\r
16         Tue, 16 Nov 2010 12:37:37 -0800 (PST)\r
17 Received: from rodolpho.mayfirst.org (rodolpho.mayfirst.org [209.234.253.107])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id F35D240DBFA\r
21         for <notmuch@notmuchmail.org>; Tue, 16 Nov 2010 12:37:36 -0800 (PST)\r
22 Received: from localhost (localhost [127.0.0.1])\r
23         by rodolpho.mayfirst.org (Postfix) with ESMTP id 7A70F3CD51;\r
24         Tue, 16 Nov 2010 15:37:34 -0500 (EST)\r
25 X-Virus-Scanned: Debian amavisd-new at rodolpho.mayfirst.org\r
26 Received: from rodolpho.mayfirst.org ([127.0.0.1])\r
27         by localhost (rodolpho.mayfirst.org [127.0.0.1]) (amavisd-new,\r
28         port 10024)\r
29         with ESMTP id 0F8NQMEZrwfK; Tue, 16 Nov 2010 15:37:34 -0500 (EST)\r
30 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender:\r
31         smtpauth@rodolpho.mayfirst.org) with ESMTPSA id 204E83CD4C\r
32 Message-ID: <4CE2EB89.5040209@fifthhorseman.net>\r
33 Date: Tue, 16 Nov 2010 15:37:29 -0500\r
34 From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
35 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;\r
36         rv:1.9.2.9) Gecko/20100918 Icedove/3.1.4\r
37 MIME-Version: 1.0\r
38 To: "Ciprian Dorin, Craciun" <ciprian.craciun@gmail.com>, \r
39         notmuch@notmuchmail.org\r
40 Subject: Re: `notmuch setup` replaces `~/.notmuch-config` instead of\r
41         truncating      it\r
42 References: <AANLkTikKiKC716H+ddF0Q5T0xc=vGHHOVroLRwzO3ujV@mail.gmail.com>\r
43         <87sjz1dr0j.fsf@yoom.home.cworth.org>\r
44         <AANLkTikrXdp5OOCw2Avs8ao9Ukpq8szsdP9FFZP+eYNK@mail.gmail.com>\r
45 In-Reply-To: <AANLkTikrXdp5OOCw2Avs8ao9Ukpq8szsdP9FFZP+eYNK@mail.gmail.com>\r
46 X-Enigmail-Version: 1.1.2\r
47 OpenPGP: id=D21739E9\r
48 Content-Type: multipart/signed; micalg=pgp-sha512;\r
49         protocol="application/pgp-signature";\r
50         boundary="------------enig56E47B72ECF88BC472B23755"\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 Reply-To: notmuch <notmuch@notmuchmail.org>\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Tue, 16 Nov 2010 20:37:47 -0000\r
65 \r
66 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)\r
67 --------------enig56E47B72ECF88BC472B23755\r
68 Content-Type: text/plain; charset=UTF-8\r
69 Content-Transfer-Encoding: quoted-printable\r
70 \r
71 On 11/16/2010 03:26 PM, Ciprian Dorin, Craciun wrote:\r
72 >     So in the light of the above quoted "glitches", my question is:\r
73 > due to the small chance of a power loss happening right when we write\r
74 > such a small file, doesn't the inconvenience weight more than the\r
75 > (fairly remote probable) file loss?\r
76 \r
77 What inconvenience?  The inconvenience of writing the code correctly?\r
78 that's a small one-time cost compared to *any* risk of a user ending up\r
79 with a damaged .notmuch-config (not to mention possible concurrent uses\r
80 of notmuch seeing an intermediate version of the file)\r
81 \r
82 >     P.S.: I say "pseudo" atomic because only the rename is atomic,\r
83 > thus in order to override file `a` for the target file `b` which\r
84 > exists, we must execute two **non-atomic** operations as a whole, but\r
85 > each atomic in part, rename operations: make `b` -> `c`, and then\r
86 > rename `a` -> `b`. So there is actually a small time-frame when I can\r
87 > be left with two files (`a` and `c`), none of which is my config file\r
88 > `b`. (This can be solved when opening the config file by checking if\r
89 > there isn't any leftover `c` or `a` file, in which case I take the `a`\r
90 > file and complete the rename.)\r
91 \r
92 There is only one ".notmuch-config" entry in the inode directory that is\r
93 your homedir.  it points either to the old file, or the new file.  it\r
94 cannot point to both, and it will not point to anything but those two\r
95 possibilities.  This is what the atomicity of the operation is expected\r
96 to guarantee.\r
97 \r
98         --dkg\r
99 \r
100 \r
101 --------------enig56E47B72ECF88BC472B23755\r
102 Content-Type: application/pgp-signature; name="signature.asc"\r
103 Content-Description: OpenPGP digital signature\r
104 Content-Disposition: attachment; filename="signature.asc"\r
105 \r
106 -----BEGIN PGP SIGNATURE-----\r
107 Version: GnuPG v1.4.10 (GNU/Linux)\r
108 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/\r
109 \r
110 iQIcBAEBCgAGBQJM4uuJAAoJEMzS7ZTSFznp6X8QAIiz2toG3b2OZjq5a8wWF+Ed\r
111 wazszczwPnxr9YPiXBTxEPqmAFoInFhoNOt0ebNbo6aiE6G+COeVxRzFjudWx23Q\r
112 K1KLPMuGglw1acvmYAr1qsOxM689VVh14txXGRAe5U4dlJ7Pv500tTk0zYmjIvoe\r
113 ojAVW+xUgpMTU4H3OaQqGPxZysuG8IGhXdibc3mwvSGrQ/DsxDhSUYiyW8BaEXnH\r
114 sIp+ShvV5d8j7Ta6p8N2Q8BXSVQdVNomETZLW+wFvZqPGTsGBT7krB2o3G+ifnLb\r
115 Rpd9SUrIs598hZYOMKQJsTc+aCak0sWkBQrD1Kd6XL0ZwR/8MdcEAlTXFxcgiWsm\r
116 y5zENJtVEB2rMvubZe5S56nBzII7Mfgk81CJw3DnObtEa6dlb89ZflMdoTQI6Zih\r
117 Jx6zPf6oZ1Ogi332+h8or5sVOvuh7N8Wc3rBQ7jNfNqeTl5OYoPSAjte5fpLrElE\r
118 62nfTdsUOQ2I9FPXkQm0F86U0rm+mzVVSVBwDD0+jx6d1r4e1QzGoJlUdvSQE6CA\r
119 XN5qTyG2g0Kln1TP3qmwDaPcoK8AkmW+8BSWSUc6jZCITlDT2bYvfIfhVKcKQPtH\r
120 hnSf20vvkczs/nrkC5gUgmEP47EX+Dwl/KqZMq3/IrYe3ngXdvlCN05O29tptM9f\r
121 t083v+6uxr8dzwtwkVI/\r
122 =1AhV\r
123 -----END PGP SIGNATURE-----\r
124 \r
125 --------------enig56E47B72ECF88BC472B23755--\r