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 97F9140DBC8 for ; Tue, 16 Nov 2010 05:34:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 tszA8ZpaItWp for ; Tue, 16 Nov 2010 05:34:02 -0800 (PST) Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by olra.theworths.org (Postfix) with ESMTP id 9588A40DDF7 for ; Tue, 16 Nov 2010 05:34:02 -0800 (PST) Received: by qyk12 with SMTP id 12so5246619qyk.5 for ; Tue, 16 Nov 2010 05:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=ywK12rsUIEPIZUIIrlR2/ANTV620N4N3Bxoy+JipsC0=; b=oXp1Ods/am6/rNjUnK+9c1Dk9+lLLkCeOObt+gtIOaIVDSOJbW7QwRuR4obOmzGF3d E4ZWV5JB7XkYXtHQJuO0DIaf5HXga/t0/MotJol8HTUk+cu7+nOpAAXL/LeSmvk9/phD d01rBeb9coAZmV5MSKfBgBNU9miEw83HZxBnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Qh+oTz0zpa99ejy6j9fZD6TO8cU47YeCFWsNnnNxM8Gf4E1GSMtGFWuOi7VHRFSoUK Z9CU568AwjjI0GsRgmCPyXMr9OQhWrN0bUVzQS9ICckdBQCBv+jEq3WmNQRgQvNwbYpH WuJys6g7cfs7cLo99mUEjo93q6HoeYMsW2RgI= Received: by 10.229.232.211 with SMTP id jv19mr6341884qcb.28.1289914440374; Tue, 16 Nov 2010 05:34:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.189.17 with HTTP; Tue, 16 Nov 2010 05:33:30 -0800 (PST) From: "Ciprian Dorin, Craciun" Date: Tue, 16 Nov 2010 15:33:30 +0200 Message-ID: Subject: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-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:34:12 -0000 Hello all! First congratulations for the nice software! I hardly wait for a notmuch native (i.e. libnotmuch) and curses client (like `ner`) to become more stable, and thus I'll be able to ditch GMail. :) But until then a small glitch... While upgrading from notmuch 0.4 to 0.5, I've re-runned `notmuch config` as suggested in the release email. 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.) 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? Thanks, Ciprian.