Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it
authorCarl Worth <cworth@cworth.org>
Tue, 16 Nov 2010 19:09:48 +0000 (11:09 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:31 +0000 (09:37 -0800)
d9/4857300b1fcbec6e12eecbac92387dd3036132 [new file with mode: 0644]

diff --git a/d9/4857300b1fcbec6e12eecbac92387dd3036132 b/d9/4857300b1fcbec6e12eecbac92387dd3036132
new file mode 100644 (file)
index 0000000..b9a5a05
--- /dev/null
@@ -0,0 +1,83 @@
+Return-Path: <cworth@cworth.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 5F62A40DBFA\r
+       for <notmuch@notmuchmail.org>; Tue, 16 Nov 2010 11:09:59 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.89\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5\r
+       tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]\r
+       autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id OYE7gbEQoZi3; Tue, 16 Nov 2010 11:09:49 -0800 (PST)\r
+Received: from yoom.home.cworth.org (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1E09E40DDC5;\r
+       Tue, 16 Nov 2010 11:09:49 -0800 (PST)\r
+Received: by yoom.home.cworth.org (Postfix, from userid 1000)\r
+       id A2D3625412B; Tue, 16 Nov 2010 11:09:48 -0800 (PST)\r
+From: Carl Worth <cworth@cworth.org>\r
+To: "Ciprian Dorin\, Craciun" <ciprian.craciun@gmail.com>,\r
+       notmuch@notmuchmail.org\r
+Subject: Re: `notmuch setup` replaces `~/.notmuch-config` instead of\r
+       truncating it\r
+In-Reply-To: <AANLkTikKiKC716H+ddF0Q5T0xc=vGHHOVroLRwzO3ujV@mail.gmail.com>\r
+References: <AANLkTikKiKC716H+ddF0Q5T0xc=vGHHOVroLRwzO3ujV@mail.gmail.com>\r
+User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1\r
+       (i486-pc-linux-gnu)\r
+Date: Tue, 16 Nov 2010 11:09:48 -0800\r
+Message-ID: <87sjz1dr0j.fsf@yoom.home.cworth.org>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 16 Nov 2010 19:09:59 -0000\r
+\r
+--=-=-=\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Tue, 16 Nov 2010 15:33:30 +0200, "Ciprian Dorin, Craciun" <ciprian.craci=\r
+un@gmail.com> wrote:\r
+>     First congratulations for the nice software!\r
+\r
+Thanks so much! Welcome to notmuch.\r
+\r
+>     So my question is: is this behaviour (of deleting the file and\r
+> creating a new one) deliberate? If not, could it be fixed (I could\r
+> provide a patch) to just update the file in place?\r
+\r
+Daniel gave the perfect answer later in the thread. It is intentional to\r
+replace the file with a new, complete version, (to avoid loss/corruption\r
+of the file if "notmuch setup" is interrupted). But we should fix this\r
+to replace the target of any symlinks.\r
+\r
+=2DCarl\r
+\r
+=2D-=20\r
+carl.d.worth@intel.com\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iD8DBQFM4tb86JDdNq8qSWgRAoDcAJ0bOND2+3rJKpx4M9jxpX/STAsg+gCeLd+B\r
+J7/h0tgKpCk8+inuIq5oth4=\r
+=LH/m\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r