Re: output file argument to notmuch dump.

Subject: Re: output file argument to notmuch dump.

Date: Mon, 10 Oct 2011 23:12:37 -0300

To: Jameson Graef Rollins, notmuch

Cc:

From: David Bremner


On Mon, 10 Oct 2011 09:41:47 -0700, Jameson Graef Rollins <jrollins@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 the
> cleaner and more elegant solution.  There's no reason to have an output
> redirection option for "dump"s and not for any of the other commands.

As far as I know, freopen(3) makes this a one-liner. I think the hardest
part of this would be figuring out the name of the option ;)

d




Thread: