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

2010-11-17 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:42, Daniel Kahn Gillmor 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 happening

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

2010-11-17 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 22:37, Daniel Kahn Gillmor 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 **non-atomic**

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

2010-11-16 Thread Ciprian Dorin, Craciun
On Tue, Nov 16, 2010 at 21:09, Carl Worth wrote: > On Tue, 16 Nov 2010 15:33:30 +0200, "Ciprian Dorin, Craciun" at 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

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

2010-11-16 Thread Daniel Kahn Gillmor
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 happening right when we write >> such a small file, doesn't the inconvenience

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

2010-11-16 Thread Daniel Kahn Gillmor
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 happening right when we write > such a small file, doesn't the inconvenience weight more than the > (fairly remote probable) file

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

2010-11-16 Thread Ciprian Dorin, Craciun
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

`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" 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 be fixed (I could >

`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" at 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

`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" 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

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

2010-11-16 Thread Ciprian Dorin, Craciun
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: `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