1 Return-Path: <jani@nikula.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by arlo.cworth.org (Postfix) with ESMTP id BCD566DE1642
\r
6 for <notmuch@notmuchmail.org>; Sat, 29 Aug 2015 07:56:55 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=-0.34 tagged_above=-999 required=5 tests=[AWL=0.380,
\r
13 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,
\r
14 RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled
\r
15 Received: from arlo.cworth.org ([127.0.0.1])
\r
16 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id qOC9v2KLESAp for <notmuch@notmuchmail.org>;
\r
18 Sat, 29 Aug 2015 07:56:54 -0700 (PDT)
\r
19 Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com
\r
21 by arlo.cworth.org (Postfix) with ESMTPS id BF9046DE17AA
\r
22 for <notmuch@notmuchmail.org>; Sat, 29 Aug 2015 07:56:46 -0700 (PDT)
\r
23 Received: by wicne3 with SMTP id ne3so39889912wic.0
\r
24 for <notmuch@notmuchmail.org>; Sat, 29 Aug 2015 07:56:45 -0700 (PDT)
\r
25 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=1e100.net; s=20130820;
\r
27 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
28 :references:in-reply-to:references;
\r
29 bh=VS0F33nn0W8Dq5aBj4p/4jMj4OonAboKUj6iZe5HoeE=;
\r
30 b=E1rOE3DYyF5Q/C7l+3imy69Ahv2tftp+hRirrFFrnATLAvZi/3/+ef5aFZj+LKPbIY
\r
31 fGnOklKaCY1UMXYjtOS9f4/k2CWJcQ4A0FBop3mCnBIDSTd3z2TJnNhEOesi5+ITS0cX
\r
32 0ibTf5EmhVzuPjbpOaShNBnyMHgbftJ7SjfHffWAql2astEAXrM19NSqIYh5BCd4dkfh
\r
33 lV72tuC7qZ9fbL5QmdLDh31J0dJUq2F/W3h2ir7GF/IZGY5sLQd3Ow3yvqL4VnLBgNAh
\r
34 wFhPjcaJ/4Krzmm51bz5eqN9nf2rut+HH2o6aTzqP27AaprHsx25gRKWrLdXcNecNvcW
\r
37 ALoCoQnDccizK3Awn8LBCYh7yLJXv1ekZHlsSKPlMobB30xY/6JQbz6JTv1EIFRK8ICiSFuAz4PQ
\r
38 X-Received: by 10.180.23.66 with SMTP id k2mr9903963wif.85.1440860205123;
\r
39 Sat, 29 Aug 2015 07:56:45 -0700 (PDT)
\r
40 Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi.
\r
42 by smtp.gmail.com with ESMTPSA id p3sm8921417wib.16.2015.08.29.07.56.44
\r
43 (version=TLSv1/SSLv3 cipher=OTHER);
\r
44 Sat, 29 Aug 2015 07:56:44 -0700 (PDT)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: notmuch@notmuchmail.org
\r
47 Subject: [RFC PATCH 3/5] cli: add support for not deduplicating notmuch
\r
49 Date: Sat, 29 Aug 2015 17:56:34 +0300
\r
51 <5badd1d1d46690987558dd2283efdc69be4c8c99.1440859765.git.jani@nikula.org>
\r
52 X-Mailer: git-send-email 2.1.4
\r
53 In-Reply-To: <cover.1440859765.git.jani@nikula.org>
\r
54 References: <cover.1440859765.git.jani@nikula.org>
\r
55 In-Reply-To: <cover.1440859765.git.jani@nikula.org>
\r
56 References: <cover.1440859765.git.jani@nikula.org>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.18
\r
60 List-Id: "Use and development of the notmuch mail system."
\r
61 <notmuch.notmuchmail.org>
\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
65 List-Post: <mailto:notmuch@notmuchmail.org>
\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
68 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
69 X-List-Received-Date: Sat, 29 Aug 2015 14:56:55 -0000
\r
71 Make it possible to use notmuch address as part of a | sort | uniq -c
\r
72 pipe instead of forcing --output=count. This is useful for combining
\r
73 results from multiple notmuch address queries.
\r
75 notmuch-search.c | 7 ++++++-
\r
76 1 file changed, 6 insertions(+), 1 deletion(-)
\r
78 diff --git a/notmuch-search.c b/notmuch-search.c
\r
79 index 36f58eb8d54c..be8afcc0187b 100644
\r
80 --- a/notmuch-search.c
\r
81 +++ b/notmuch-search.c
\r
82 @@ -355,7 +355,8 @@ process_address_list (const search_context_t *ctx,
\r
86 - if (is_duplicate (ctx, mbx.name, mbx.addr))
\r
87 + if ((ctx->output & OUTPUT_COUNT || ctx->dupe) &&
\r
88 + is_duplicate (ctx, mbx.name, mbx.addr))
\r
91 if (ctx->output & OUTPUT_COUNT)
\r
92 @@ -755,6 +756,10 @@ notmuch_address_command (notmuch_config_t *config, int argc, char *argv[])
\r
93 (notmuch_keyword_t []){ { "true", NOTMUCH_EXCLUDE_TRUE },
\r
94 { "false", NOTMUCH_EXCLUDE_FALSE },
\r
96 + { NOTMUCH_OPT_KEYWORD, &ctx->dupe, "deduplicate", 'x',
\r
97 + (notmuch_keyword_t []){ { "yes", -1 },
\r
100 { NOTMUCH_OPT_INHERIT, (void *) &common_options, NULL, 0, 0 },
\r
101 { NOTMUCH_OPT_INHERIT, (void *) ¬much_shared_options, NULL, 0, 0 },
\r