Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5725A429E27 for ; Mon, 10 Oct 2011 19:13:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v0IW26F3QG0z for ; Mon, 10 Oct 2011 19:13:01 -0700 (PDT) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0D5A0429E21 for ; Mon, 10 Oct 2011 19:13:00 -0700 (PDT) Received: from zancas.localnet (fctnnbsc36w-156034064058.pppoe-dynamic.High-Speed.nb.bellaliant.net [156.34.64.58]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p9B2CcUq025935 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Mon, 10 Oct 2011 23:12:38 -0300 Received: from bremner by zancas.localnet with local (Exim 4.76) (envelope-from ) id 1RDRpd-0002B7-Uu; Mon, 10 Oct 2011 23:12:37 -0300 From: David Bremner To: Jameson Graef Rollins , notmuch Subject: Re: output file argument to notmuch dump. In-Reply-To: <87y5wsajec.fsf@washington.ligo-wa.caltech.edu> References: <8739f5tzxj.fsf@zancas.localnet> <8739f2qhla.fsf@zancas.localnet> <87y5wsajec.fsf@washington.ligo-wa.caltech.edu> User-Agent: Notmuch/0.9~rc2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Mon, 10 Oct 2011 23:12:37 -0300 Message-ID: <87botop97u.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2011 02:13:02 -0000 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 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