From 98a7fbac2c37309baa3f43df1c8e7db6c2f01573 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 15 Nov 2012 21:33:22 +2000 Subject: [PATCH] [PATCH 3/3] notmuch-dump: tidy formatting --- c4/1480a7e695187b7e5f1b4bb6fe9c26675d3b2c | 106 ++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 c4/1480a7e695187b7e5f1b4bb6fe9c26675d3b2c diff --git a/c4/1480a7e695187b7e5f1b4bb6fe9c26675d3b2c b/c4/1480a7e695187b7e5f1b4bb6fe9c26675d3b2c new file mode 100644 index 000000000..09bc71c8f --- /dev/null +++ b/c4/1480a7e695187b7e5f1b4bb6fe9c26675d3b2c @@ -0,0 +1,106 @@ +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 1F3CE431FC2 + for ; Wed, 14 Nov 2012 17:33:44 -0800 (PST) +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 WMwiItpbcKQV for ; + Wed, 14 Nov 2012 17:33:42 -0800 (PST) +Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id A2276431FD9 + for ; Wed, 14 Nov 2012 17:33:42 -0800 (PST) +Received: from fctnnbsc30w-156034089108.dhcp-dynamic.fibreop.nb.bellaliant.net + ([156.34.89.108] helo=zancas.localnet) + by tesseract.cs.unb.ca with esmtpsa + (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) + (envelope-from ) + id 1TYoKr-0007Yc-WE; Wed, 14 Nov 2012 21:33:42 -0400 +Received: from bremner by zancas.localnet with local (Exim 4.80) + (envelope-from ) + id 1TYoKm-0000UK-Ek; Wed, 14 Nov 2012 21:33:36 -0400 +From: david@tethera.net +To: notmuch@notmuchmail.org +Subject: [PATCH 3/3] notmuch-dump: tidy formatting +Date: Wed, 14 Nov 2012 21:33:22 -0400 +Message-Id: <1352943202-1431-4-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.7.10.4 +In-Reply-To: <1352943202-1431-1-git-send-email-david@tethera.net> +References: <1352943202-1431-1-git-send-email-david@tethera.net> +X-Spam_bar: - +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: Thu, 15 Nov 2012 01:33:44 -0000 + +From: David Bremner + +More uncrustify at work. +--- + notmuch-dump.c | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) + +diff --git a/notmuch-dump.c b/notmuch-dump.c +index d8186fb..88f598a 100644 +--- a/notmuch-dump.c ++++ b/notmuch-dump.c +@@ -30,7 +30,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) + notmuch_messages_t *messages; + notmuch_message_t *message; + notmuch_tags_t *tags; +- const char* query_str = ""; ++ const char *query_str = ""; + + config = notmuch_config_open (ctx, NULL, NULL); + if (config == NULL) +@@ -66,7 +66,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) + + + if (opt_index < argc) { +- query_str = query_string_from_args (notmuch, argc-opt_index, argv+opt_index); ++ query_str = query_string_from_args (notmuch, argc - opt_index, argv + opt_index); + if (query_str == NULL) { + fprintf (stderr, "Out of memory.\n"); + return 1; +@@ -85,8 +85,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) + + for (messages = notmuch_query_search_messages (query); + notmuch_messages_valid (messages); +- notmuch_messages_move_to_next (messages)) +- { ++ notmuch_messages_move_to_next (messages)) { + int first = 1; + message = notmuch_messages_get (messages); + +@@ -95,8 +94,7 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[]) + + for (tags = notmuch_message_get_tags (message); + notmuch_tags_valid (tags); +- notmuch_tags_move_to_next (tags)) +- { ++ notmuch_tags_move_to_next (tags)) { + if (! first) + fprintf (output, " "); + +-- +1.7.10.4 + -- 2.26.2