[RFC Patch v2 3/3] notmuch-dump: add --format option

David Bremner david at tethera.net
Thu Dec 1 22:41:54 PST 2011


From: David Bremner <bremner at debian.org>

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



More information about the notmuch mailing list