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 22872429E27 for ; Mon, 10 Oct 2011 06:59:10 -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 JxA3pUXLSB5y for ; Mon, 10 Oct 2011 06:59:09 -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 554E6429E26 for ; Mon, 10 Oct 2011 06:59:09 -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 p9ADx6j7012050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 10 Oct 2011 16:59:06 +0300 Received: (from too@localhost) by taco2.nixu.fi (8.14.3/8.14.3/Submit) id p9ADx6mC012049; Mon, 10 Oct 2011 16:59:06 +0300 X-Authentication-Warning: taco2.nixu.fi: too set sender to tomi.ollila@nixu.com using -f From: Tomi Ollila To: David Bremner Subject: Re: output file argument to notmuch dump. References: <8739f5tzxj.fsf@zancas.localnet> <8739f2qhla.fsf@zancas.localnet> X-Face: HhBM'cA~ (David Bremner's message of "Sun, 09 Oct 2011 13:01:53 -0300") 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: 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: Mon, 10 Oct 2011 13:59:10 -0000 On Sun 09 Oct 2011 19:01, David Bremner writes: > On Thu, 06 Oct 2011 21:20:40 -0300, David Bremner wrote: >> >> I'd like to add a search term argument to notmuch dump (see >> id:"87wrcijn1w.fsf@zancas.localnet" and followup for context). The >> "notmuch" way would be to have >> >> notmuch dump >> >> 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 ' 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=] ... > could be dealt with later. > > David Tomi