Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Jameson Rollins
On Tue, 16 Nov 2010 15:33:30 +0200, Ciprian Dorin, Craciun ciprian.crac...@gmail.com 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

Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Daniel Kahn Gillmor
On 11/16/2010 08:38 AM, Jameson Rollins wrote: On Tue, 16 Nov 2010 15:33:30 +0200, Ciprian Dorin, Craciun ciprian.crac...@gmail.com wrote: 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

Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Carl Worth
On Tue, 16 Nov 2010 15:33:30 +0200, Ciprian Dorin, Craciun ciprian.crac...@gmail.com wrote: First congratulations for the nice software! Thanks so much! Welcome to notmuch. So my question is: is this behaviour (of deleting the file and creating a new one) deliberate? If not, could it

Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:37, Daniel Kahn Gillmor d...@fifthhorseman.net wrote: On 11/16/2010 03:26 PM, Ciprian Dorin, Craciun wrote:     P.S.: I say pseudo atomic because only the rename is atomic, thus in order to override file `a` for the target file `b` which exists, we must execute two

Re: `notmuch setup` replaces `~/.notmuch-config` instead of truncating it

2010-11-16 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:42, Daniel Kahn Gillmor d...@fifthhorseman.net wrote: On 11/16/2010 03:37 PM, Daniel Kahn Gillmor wrote: On 11/16/2010 03:26 PM, Ciprian Dorin, Craciun wrote:     So in the light of the above quoted glitches, my question is: due to the small chance of a power loss