Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8F66D40DBC8 for ; Tue, 16 Nov 2010 05:39:11 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.19 X-Spam-Level: X-Spam-Status: No, score=-4.19 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jh0Ceq-qbyZI for ; Tue, 16 Nov 2010 05:39:00 -0800 (PST) Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8]) by olra.theworths.org (Postfix) with ESMTP id 30CEE40DDF9 for ; Tue, 16 Nov 2010 05:39:00 -0800 (PST) Received: from servo.finestructure.net (cpe-74-66-82-137.nyc.res.rr.com [74.66.82.137]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by brinza.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id oAGDcvZr011014 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Tue, 16 Nov 2010 08:38:57 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.72) (envelope-from ) id 1PILkP-0000Py-C4; Tue, 16 Nov 2010 08:38:57 -0500 From: Jameson Rollins To: "Ciprian Dorin\, Craciun" , notmuch@notmuchmail.org Subject: Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it In-Reply-To: References: User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Tue, 16 Nov 2010 08:38:52 -0500 Message-ID: <87k4kdbd77.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2010 13:39:11 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Tue, 16 Nov 2010 15:33:30 +0200, "Ciprian Dorin, Craciun" wrote: > But in my particular case `~/.notmuch-config` is symlinked to an > applications configuration directory which is versioned. Thus I've > expected than when notmuch updates the config, it opens it for > read-write, but with the truncation flag (which as a consequence would > have modified the symlinked file). But instead it deleted the symlink, > and replaced it with a newly created file (thus breaking my custom > configuration backup system.) >=20 > So my question is: is this behaviour (of deleting the file and > creating a new one) deliberate? If not, could it be fixed (I could > provide a patch) to just update the file in place? Hi, Ciprian. I had not noticed this, but now that you mention it, I see that the same thing happened to me. This behavior is surely not deliberate, and is definitely undesirable. A patch would be welcome. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJM4oltAAoJEO00zqvie6q8gO4QAIazKXTHGGBW+fUbowJaQ5/m INaK691hdTrjLCzvY62ux9uJmnZ40HRsAVedX389+Wf0G7tOJpg5FdlB5du8ejEO pHSRVz/PlkOZLsKWmC+AZXa28Bc6R8OK09BJSqxuCxknwS6Zufe5VCzDk2svHATC x1oTxvuHUgrnBO0mi4o3UelugeJwkywiferrBNyPxU5RLiq8asT6mHZjiurescQF SbluDuRdjWyMiuFxN6VWGQ76TFPN09b5Tpxdf4LuO/bnYED87b4eGpkP+9l2RQAX PY0MzuXzBXbHkb+ESn8Plal7Abuq3XqRboA73znkYr3z0nOJUi2KZ/rUl+hUOXQz /1Gkz4RaZQ7wX1o46nFzEgRhJjDHDe1kD3VM9wpa+HiY0jXNAd6s1Oc1ZLSlnPyO WR4RRWKEacYy1yAY36/zhQkQWUdw9xTpv21WPkogytlea4nYtY3zFd0zi8P5Zn0y TSfp19a8T/FEhUceHd+ARBtxybRCn72Jz/ivbmbtO5fzdyUkNCWuHa9qwJSJ0Vr0 M69koC+fUABmsfj2Ks1lXyMfhNASwDbSjtq4Dlphx1ewUrTnNazv33zBlkiWtngu kqUN4IX+h5r6I+COUCKI2mmJQbC91RIA+lzW0bHxz/q02MwWhFR0FwmPDWYXhYBS ciOgV4zxQNAjhcR8ciRq =sRqk -----END PGP SIGNATURE----- --=-=-=--