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 E0206429E26 for ; Fri, 7 Oct 2011 04:15:44 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 S1BnxXyQh9Vs for ; Fri, 7 Oct 2011 04:15:44 -0700 (PDT) Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id E5FA3431FB6 for ; Fri, 7 Oct 2011 04:15:43 -0700 (PDT) Received: from taco2.nixu.fi (localhost [127.0.0.1]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p97BFdNQ032191 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 7 Oct 2011 14:15:39 +0300 Received: (from too@localhost) by taco2.nixu.fi (8.14.3/8.14.3/Submit) id p97BFd9L032190; Fri, 7 Oct 2011 14:15:39 +0300 X-Authentication-Warning: taco2.nixu.fi: too set sender to tomi.ollila@nixu.com using -f From: Tomi Ollila To: Jesse Rosenthal Subject: Re: output file argument to notmuch dump. References: <8739f5tzxj.fsf@zancas.localnet> X-Face: HhBM'cA~ (Jesse Rosenthal's message of "Fri, 07 Oct 2011 06:23:58 -0400") Message-ID: User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Cc: David Bremner , notmuch 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 11:15:45 -0000 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 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. 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 redirections). > --Jesse Tomi