From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 16ADF429E33 for ; Mon, 10 Oct 2011 06:49:40 -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 SinrXCE+hcn7 for ; Mon, 10 Oct 2011 06:49:39 -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 8AB0E429E31 for ; Mon, 10 Oct 2011 06:49:39 -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 p9ADnZ86010796 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 10 Oct 2011 10:49:38 -0300 Received: from bremner by zancas.localnet with local (Exim 4.76) (envelope-from ) id 1RDGEZ-0006fh-48 for notmuch@notmuchmail.org; Mon, 10 Oct 2011 10:49:35 -0300 From: david@tethera.net To: notmuch@notmuchmail.org Subject: Date: Mon, 10 Oct 2011 10:49:15 -0300 Message-Id: <1318254561-25386-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.7.6.3 In-Reply-To: <8739f2qhla.fsf@zancas.localnet> References: <8739f2qhla.fsf@zancas.localnet> 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:49:40 -0000 OK, here is my proposal to add search terms to notmuch dump. Most of the work is in argument processing. It would be nice if we could factor some of that out. 02be821 notmuch-dump: deprecate use of output file argument. 2b7781d test: all dump-restore tests should be working now 7a203d6 notmuch-dump: treat any remaining arguments after the filename as search t be762d9 notmuch-dump: update handling of file name argument d6715d7 test: add tests for command line arguments to notmuch-dump 08e76cc test: update dump-restore to use redirection instead of filename args notmuch-dump.c | 37 ++++++++++++++++++++++++++----------- test/dump-restore | 39 ++++++++++++++++++++++++++++++++++----- 2 files changed, 60 insertions(+), 16 deletions(-)