output file argument to notmuch dump.
Tomi Ollila
tomi.ollila at iki.fi
Mon Oct 10 06:59:06 PDT 2011
On Sun 09 Oct 2011 19:01, David Bremner <bremner at unb.ca> writes:
> On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner <bremner at unb.ca> 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 <search-term>
>>
>> do the right thing
>
> 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
> notmuch dump -- search terms
>
> the first two could then be deprecated, and eventually the syntax
>
> notmuch dump search terms
>
> could be enabled.
In this case there would be 2 transitional syntaxes. IMHO
'notmuch dump <search-terms>' causes least transitional pain.
> the question of whether to support
>
> notmuch dump --file foo.txt
>
> or something like
>
> notmuch --stdout=foo.txt dump
who about
notmuch [--output-file=<file>] <command> ...
> could be dealt with later.
>
> David
Tomi
More information about the notmuch
mailing list