1 Return-Path: <daniel@schoepe.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 D47BD6DE1532
\r
6 for <notmuch@notmuchmail.org>; Tue, 11 Aug 2015 00:47:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.11 tagged_above=-999 required=5 tests=[AWL=0.097,
\r
12 DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,
\r
14 RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_WEB=0.614, SPF_PASS=-0.001]
\r
16 Received: from arlo.cworth.org ([127.0.0.1])
\r
17 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
18 with ESMTP id ZLRaRCWwV2x6 for <notmuch@notmuchmail.org>;
\r
19 Tue, 11 Aug 2015 00:47:17 -0700 (PDT)
\r
20 Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com
\r
22 by arlo.cworth.org (Postfix) with ESMTPS id E53906DE099D
\r
23 for <notmuch@notmuchmail.org>; Tue, 11 Aug 2015 00:47:16 -0700 (PDT)
\r
24 Received: by wicja10 with SMTP id ja10so57046861wic.1
\r
25 for <notmuch@notmuchmail.org>; Tue, 11 Aug 2015 00:47:15 -0700 (PDT)
\r
26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;
\r
27 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
28 bh=5hFWSeWKuVV4UReuueFD0cc1VUuDYQL/TTIaJR/NfDw=;
\r
29 b=Iw/aeTE2VuNzF3kuuBFK/v5F/+cNaYiuqiZ3eDhvXjUZ3I8Xxiq869N7JyOY0Acq/+
\r
30 NcevUsORGexLEkPQ4JpPDp5+hxM6/MwO/N8Xlpx5jPy56OVE/oFsQL9YyP7d44LHElmm
\r
31 GcGtcxG0ObBBjaXFtyEygyFtr6RWDDD7K8czs=
\r
32 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
33 d=1e100.net; s=20130820;
\r
34 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
\r
36 bh=5hFWSeWKuVV4UReuueFD0cc1VUuDYQL/TTIaJR/NfDw=;
\r
37 b=WICAWgxpYlyIzgCf0XfkbhH/j1YBxiiqH7/W5+LWbIP1CMgRxwWKyXGsN2iqwgx4P3
\r
38 5ub9/hEzjlyWsELduptda7A0VDJySVlLs503YNj9TfhKH9JI57hDzd8JwVPdtfrTQ9gR
\r
39 qXqY+BlE8kUMQHwmrlnRCSkLvLFkWFNp2BtaKG+Du6HX3slq+0WYeIw93W3/nWrf1wHl
\r
40 8yKrJFsF2JXvIbdcLFAeaZqs3ODQYwXXi5ggVcjYJGynBuyNQinbdjdDtpZR2IvToTCr
\r
41 IAgRQLfwrGnkygHM3RIhSlyznx7NoCqZBSE6Nbf7bJ0P0gSv60p99Q4QgG43dx4hur6e
\r
44 ALoCoQmXGdd/9BjxBvlaqfDoCT75n7eiG4Zw2A5Kng5KHIiTcZC59VuSXpUpuIM81Dik2B6eWujI
\r
45 X-Received: by 10.180.76.232 with SMTP id n8mr34396821wiw.72.1439279234951;
\r
46 Tue, 11 Aug 2015 00:47:14 -0700 (PDT)
\r
47 Received: from localhost (ip-80-226-24-7.vodafone-net.de. [80.226.24.7])
\r
48 by smtp.gmail.com with ESMTPSA id d17sm1667889wjs.32.2015.08.11.00.47.13
\r
49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
50 Tue, 11 Aug 2015 00:47:13 -0700 (PDT)
\r
51 From: Daniel Schoepe <daniel@schoepe.org>
\r
52 To: notmuch@notmuchmail.org
\r
53 Subject: [PATCH 1/2] cli: Allow combining --remove-all and --batch
\r
54 Date: Tue, 11 Aug 2015 09:46:37 +0200
\r
55 Message-Id: <1439279198-21330-2-git-send-email-daniel@schoepe.org>
\r
56 X-Mailer: git-send-email 2.5.0
\r
57 In-Reply-To: <1439279198-21330-1-git-send-email-daniel@schoepe.org>
\r
58 References: <1439279198-21330-1-git-send-email-daniel@schoepe.org>
\r
59 X-BeenThere: notmuch@notmuchmail.org
\r
60 X-Mailman-Version: 2.1.18
\r
62 List-Id: "Use and development of the notmuch mail system."
\r
63 <notmuch.notmuchmail.org>
\r
64 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
65 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
66 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
67 List-Post: <mailto:notmuch@notmuchmail.org>
\r
68 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
69 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
70 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
71 X-List-Received-Date: Tue, 11 Aug 2015 07:47:18 -0000
\r
73 This patch removes the restriction on notmuch-tag that disallows using
\r
74 both --remove-all and --batch. Combining the two options removes tags
\r
75 on all messages affected by each query before applying the new tags.
\r
77 notmuch-tag.c | 4 ----
\r
78 1 file changed, 4 deletions(-)
\r
80 diff --git a/notmuch-tag.c b/notmuch-tag.c
\r
81 index 38d99aa..f1df986 100644
\r
84 @@ -231,10 +231,6 @@ notmuch_tag_command (notmuch_config_t *config, int argc, char *argv[])
\r
85 fprintf (stderr, "Can't specify both cmdline and stdin!\n");
\r
86 return EXIT_FAILURE;
\r
89 - fprintf (stderr, "Can't specify both --remove-all and --batch\n");
\r
90 - return EXIT_FAILURE;
\r
93 tag_ops = tag_op_list_create (config);
\r
94 if (tag_ops == NULL) {
\r