output file argument to notmuch dump.

2011-10-11 Thread David Bremner
On Mon, 10 Oct 2011 09:41:47 -0700, Jameson Graef Rollins wrote: > >notmuch --stdout=foo.txt dump > > > > could be dealt with later. > > I realize the later probably requires more work, since we would have to > replace all print calls with a new function, but I think it's the > cleaner and

output file argument to notmuch dump.

2011-10-10 Thread Tomi Ollila
On Sun 09 Oct 2011 19:01, David Bremner writes: > On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: >> >> I'd like to add a search term argument to notmuch dump (see >> id:"87wrcijn1w.fsf at zancas.localnet" and followup for context). The >> "notmuch" way would be to have >> >>

output file argument to notmuch dump.

2011-10-10 Thread David Bremner
On Mon, 10 Oct 2011 16:59:06 +0300, Tomi Ollila wrote: > > In this case there would be 2 transitional syntaxes. IMHO > > 'notmuch dump ' causes least transitional pain. > I don't understand what you mean here. Can you elaborate? notmuch dump is not a transitional syntax, but rather a

output file argument to notmuch dump.

2011-10-10 Thread Tomi Ollila
On Fri 07 Oct 2011 20:22, Jameson Graef Rollins writes: > On Fri, 07 Oct 2011 14:15:39 +0300, Tomi Ollila wrote: >> The option 2, i.e. optional --write (or -o|--output) should be available; >> someone may run notmuch without using environment that provides >> redirections (or it is just plain

output file argument to notmuch dump.

2011-10-10 Thread Jameson Graef Rollins
On Sun, 09 Oct 2011 13:01:53 -0300, David Bremner wrote: > Another option occured to me that is consistent at least with notmuch > tag and notmuch show would be to support the following transitional > syntaxes > > notmuch dump file > notmuch dump file [--] search terms >

Re: output file argument to notmuch dump.

2011-10-10 Thread David Bremner
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner brem...@unb.ca wrote: I'd like to add a search term argument to notmuch dump (see id:87wrcijn1w.fsf@zancas.localnet and followup for context). The notmuch way would be to have notmuch dump search-term do the right thing Another

Re: output file argument to notmuch dump.

2011-10-10 Thread Tomi Ollila
On Fri 07 Oct 2011 20:22, Jameson Graef Rollins jroll...@finestructure.net writes: On Fri, 07 Oct 2011 14:15:39 +0300, Tomi Ollila tomi.oll...@iki.fi wrote: The option 2, i.e. optional --write (or -o|--output) should be available; someone may run notmuch without using environment that

Re: output file argument to notmuch dump.

2011-10-10 Thread David Bremner
On Mon, 10 Oct 2011 16:59:06 +0300, Tomi Ollila tomi.oll...@iki.fi wrote: In this case there would be 2 transitional syntaxes. IMHO 'notmuch dump search-terms' causes least transitional pain. I don't understand what you mean here. Can you elaborate? notmuch dump search-terms is not

Re: output file argument to notmuch dump.

2011-10-10 Thread Jameson Graef Rollins
On Sun, 09 Oct 2011 13:01:53 -0300, David Bremner brem...@unb.ca wrote: Another option occured to me that is consistent at least with notmuch tag and notmuch show would be to support the following transitional syntaxes notmuch dump file notmuch dump file [--] search terms

Re: output file argument to notmuch dump.

2011-10-10 Thread David Bremner
On Mon, 10 Oct 2011 09:41:47 -0700, Jameson Graef Rollins jroll...@finestructure.net wrote: notmuch --stdout=foo.txt dump could be dealt with later. I realize the later probably requires more work, since we would have to replace all print calls with a new function, but I think it's

output file argument to notmuch dump.

2011-10-09 Thread David Bremner
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: > > I'd like to add a search term argument to notmuch dump (see > id:"87wrcijn1w.fsf at zancas.localnet" and followup for context). The > "notmuch" way would be to have > > notmuch dump > > do the right thing Another option occured

output file argument to notmuch dump.

2011-10-07 Thread Tomi Ollila
On Fri 07 Oct 2011 13:23, Jesse Rosenthal writes: > On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: >> 1) just delete the output file option from notmuch-dump, and use shell >>redirection. So far I don't see a non-contrived example when writing >>an output file directly is

output file argument to notmuch dump.

2011-10-07 Thread Jameson Graef Rollins
On Fri, 07 Oct 2011 14:15:39 +0300, Tomi Ollila wrote: > The option 2, i.e. optional --write (or -o|--output) should be available; > someone may run notmuch without using environment that provides > redirections (or it is just plain simpler to give the command line option > instead of doing

output file argument to notmuch dump.

2011-10-07 Thread Jesse Rosenthal
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: > 1) just delete the output file option from notmuch-dump, and use shell >redirection. So far I don't see a non-contrived example when writing >an output file directly is useful, but maybe that is just a failure >of imagination.

output file argument to notmuch dump.

2011-10-07 Thread Dmitry Kurochkin
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: > > I'd like to add a search term argument to notmuch dump (see > id:"87wrcijn1w.fsf at zancas.localnet" and followup for context). The > "notmuch" way would be to have > > notmuch dump > > do the right thing, and that is easy

Re: output file argument to notmuch dump.

2011-10-07 Thread Jesse Rosenthal
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner brem...@unb.ca wrote: 1) just delete the output file option from notmuch-dump, and use shell redirection. So far I don't see a non-contrived example when writing an output file directly is useful, but maybe that is just a failure of

Re: output file argument to notmuch dump.

2011-10-07 Thread Tomi Ollila
On Fri 07 Oct 2011 13:23, Jesse Rosenthal jrosent...@jhu.edu writes: On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner brem...@unb.ca wrote: 1) just delete the output file option from notmuch-dump, and use shell redirection. So far I don't see a non-contrived example when writing an

Re: output file argument to notmuch dump.

2011-10-07 Thread Jameson Graef Rollins
On Fri, 07 Oct 2011 14:15:39 +0300, Tomi Ollila tomi.oll...@iki.fi wrote: The option 2, i.e. optional --write (or -o|--output) should be available; someone may run notmuch without using environment that provides redirections (or it is just plain simpler to give the command line option instead

output file argument to notmuch dump.

2011-10-06 Thread David Bremner
On Fri, 07 Oct 2011 04:37:56 +0400, Dmitry Kurochkin wrote: > On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: > IMHO 1[+2] is the way. It breaks the dump command interface, but would > make it consistent with other commands. Implementing the second option > (for all commands) is nice

output file argument to notmuch dump.

2011-10-06 Thread Tom Prince
On Thu, 06 Oct 2011 21:53:57 -0300, David Bremner wrote: > On Fri, 07 Oct 2011 04:37:56 +0400, Dmitry Kurochkin gmail.com> wrote: > > On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: > > > IMHO 1[+2] is the way. It breaks the dump command interface, but would > > make it consistent

output file argument to notmuch dump.

2011-10-06 Thread David Bremner
I'd like to add a search term argument to notmuch dump (see id:"87wrcijn1w.fsf at zancas.localnet" and followup for context). The "notmuch" way would be to have notmuch dump do the right thing, and that is easy enough _except_ that notmuch dump foo writes the output to file foo. I

output file argument to notmuch dump.

2011-10-06 Thread Jameson Graef Rollins
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: > I see several options. > > 1) just delete the output file option from notmuch-dump, and use shell >redirection. So far I don't see a non-contrived example when writing >an output file directly is useful, but maybe that is just a

output file argument to notmuch dump.

2011-10-06 Thread David Bremner
I'd like to add a search term argument to notmuch dump (see id:87wrcijn1w.fsf@zancas.localnet and followup for context). The notmuch way would be to have notmuch dump search-term do the right thing, and that is easy enough _except_ that notmuch dump foo writes the output to file foo.

Re: output file argument to notmuch dump.

2011-10-06 Thread Dmitry Kurochkin
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner brem...@unb.ca wrote: I'd like to add a search term argument to notmuch dump (see id:87wrcijn1w.fsf@zancas.localnet and followup for context). The notmuch way would be to have notmuch dump search-term do the right thing, and that is

Re: output file argument to notmuch dump.

2011-10-06 Thread David Bremner
On Fri, 07 Oct 2011 04:37:56 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner brem...@unb.ca wrote: IMHO 1[+2] is the way. It breaks the dump command interface, but would make it consistent with other commands. Implementing the

Re: output file argument to notmuch dump.

2011-10-06 Thread Jameson Graef Rollins
On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner brem...@unb.ca wrote: I see several options. 1) just delete the output file option from notmuch-dump, and use shell redirection. So far I don't see a non-contrived example when writing an output file directly is useful, but maybe that