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 3E83C429E26 for ; Fri, 7 Oct 2011 03:41:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=5 tests=[FSL_HELO_NON_FQDN_1=0.001, HELO_NO_DOMAIN=1] 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 oAilIlQrkmFH for ; Fri, 7 Oct 2011 03:41:09 -0700 (PDT) X-Greylist: delayed 1029 seconds by postgrey-1.32 at olra; Fri, 07 Oct 2011 03:41:09 PDT Received: from ladybug (li131-231.members.linode.com [69.164.216.231]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B8942431FB6 for ; Fri, 7 Oct 2011 03:41:09 -0700 (PDT) Received: from jkr by ladybug with local (Exim 4.76) (envelope-from ) id 1RC7aw-00086N-3x; Fri, 07 Oct 2011 06:23:58 -0400 From: Jesse Rosenthal To: David Bremner , notmuch Subject: Re: output file argument to notmuch dump. In-Reply-To: <8739f5tzxj.fsf@zancas.localnet> References: <8739f5tzxj.fsf@zancas.localnet> User-Agent: Notmuch/unknown (http://notmuchmail.org) Emacs/23.3.1 (x86_64-apple-darwin) Date: Fri, 07 Oct 2011 06:23:58 -0400 Message-ID: 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: Fri, 07 Oct 2011 10:41:10 -0000 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. > > 2) delete the output file option and a global "--write" option that > calls freopen(... stdout). As a bonus(?) this would work for any > notmuch command. Either of these seem like the right approach to me. I might favor (1) just a bit so I don't have to choose between different ways of doing the same thing, but that's a small point. As Jamie said, they're pretty much the same. --Jesse