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 08ED9429E3A for ; Thu, 1 Dec 2011 22:42:14 -0800 (PST) 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 hTZ5wzLLYgSE for ; Thu, 1 Dec 2011 22:42:13 -0800 (PST) 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 45BFD429E31 for ; Thu, 1 Dec 2011 22:42:13 -0800 (PST) Received: from rocinante.cs.unb.ca (m3.kereda.com [207.194.238.3] (may be forged)) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pB26g5DS010489 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Fri, 2 Dec 2011 02:42:07 -0400 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.76) (envelope-from ) id 1RWMou-00038n-RD; Thu, 01 Dec 2011 22:42:04 -0800 From: David Bremner To: notmuch@notmuchmail.org Subject: [RFC Patch v2 3/3] notmuch-dump: add --format option Date: Thu, 1 Dec 2011 22:41:54 -0800 Message-Id: <1322808114-11854-3-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1322808114-11854-1-git-send-email-david@tethera.net> References: <1322702130-26068-3-git-send-email-bremner@debian.org> <1322808114-11854-1-git-send-email-david@tethera.net> Cc: David Bremner 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, 02 Dec 2011 06:42:14 -0000 From: David Bremner Note that the new option does not control anything at the moment. --- notmuch-dump.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/notmuch-dump.c b/notmuch-dump.c index 9e0c91d..d0ab360 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -42,10 +42,14 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) if (notmuch == NULL) return 1; + int output_format = 's'; char *output_file_name = NULL; int opt_index; notmuch_opt_desc_t options[] = { + { "format", 'f', NOTMUCH_OPT_KEYWORD, + (notmuch_keyword_t []){ { "sup", 's' }, { "path", 'p' }, {0, 0} }, + &output_format }, { "out-file", 'o', NOTMUCH_OPT_POSITION, 0, &output_file_name }, { 0, 0, 0, 0, 0 } }; -- 1.7.5.4