From: Daniel Schoepe Date: Tue, 11 Aug 2015 07:46:36 +0000 (+0200) Subject: [PATCH] notmuch-tag: Allow using both --remove-all and --batch X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=39f6d126ce8790e32a82b41596ffaef4e7a290e4;p=notmuch-archives.git [PATCH] notmuch-tag: Allow using both --remove-all and --batch --- diff --git a/5c/86a1f9c1e8d8ac052a37168c0c710c677fb8c4 b/5c/86a1f9c1e8d8ac052a37168c0c710c677fb8c4 new file mode 100644 index 000000000..e84f69825 --- /dev/null +++ b/5c/86a1f9c1e8d8ac052a37168c0c710c677fb8c4 @@ -0,0 +1,82 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 6A0D96DE0AC2 + for ; Tue, 11 Aug 2015 00:46:58 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.11 +X-Spam-Level: +X-Spam-Status: No, score=-0.11 tagged_above=-999 required=5 tests=[AWL=0.097, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_WEB=0.614, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id LK6c6Xm-Je9S for ; + Tue, 11 Aug 2015 00:46:56 -0700 (PDT) +Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com + [209.85.212.178]) + by arlo.cworth.org (Postfix) with ESMTPS id 32BD96DE099D + for ; Tue, 11 Aug 2015 00:46:56 -0700 (PDT) +Received: by wicne3 with SMTP id ne3so49654113wic.0 + for ; Tue, 11 Aug 2015 00:46:54 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google; + h=from:to:subject:date:message-id; + bh=pvsS6BvOmUehDbviP+EHRX+nEIQUOggPOWhORArhwm4=; + b=cCID0KIrihoekCQ/jV374erGdShzMT6RMoUsneqBTxI4SCwgKIHPt7vPzBDFNAdYA4 + YgrNUq62zb+LzfW4eWAc6ScDtLOWXiHhzfdc2tzMn3PsRGpE8hmXkBKh1nIQ3VWwwMmI + PWhPlvpBUpDPB3zMHAfCKnOQW3dAVu7LGLIDs= +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:subject:date:message-id; + bh=pvsS6BvOmUehDbviP+EHRX+nEIQUOggPOWhORArhwm4=; + b=bapZzyQJH03drRd6NJOu75C3XJ7l9TL5pEptqYhRM0GzzCKW0wFvHYPOx2yz0BqrOU + BExVEdQvYRGI0V5g/ZZgh1EO/tj1vP+GJT1z7aJ0Xvx4WSZkZxP52nnk1SpvK0iu2PXK + iFARr6tLioRy5HqnS+QhK10nqoFJwD3MP2NrcOgZTA/mZCa3TfyhDwiiP1oRni9Fx3eW + hEHy7HyVj0rmoN1vTPXfd62XcwZSj0tMpuokcgSETnrbFkdDi+Ij/duuHAAtAIjAdpGa + knltcVAHNjwhrQN+/MA0RDJ7Ta75gLvAlOjPfj2QniTFeQlWuanbMGa/uxhstB+Ea3+t + hZcA== +X-Gm-Message-State: + ALoCoQm28OIVt0Gi7u8dWlnxhwoFIZYYE9zW9jq/ZuMrgN+axMhJni9C/FD/bUFL9My8iwWWlsb+ +X-Received: by 10.180.87.230 with SMTP id bb6mr31722919wib.36.1439279214256; + Tue, 11 Aug 2015 00:46:54 -0700 (PDT) +Received: from localhost (ip-80-226-24-7.vodafone-net.de. [80.226.24.7]) + by smtp.gmail.com with ESMTPSA id w8sm2065709wiy.10.2015.08.11.00.46.51 + for + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Tue, 11 Aug 2015 00:46:52 -0700 (PDT) +From: Daniel Schoepe +To: notmuch@notmuchmail.org +Subject: [PATCH] notmuch-tag: Allow using both --remove-all and --batch +Date: Tue, 11 Aug 2015 09:46:36 +0200 +Message-Id: <1439279198-21330-1-git-send-email-daniel@schoepe.org> +X-Mailer: git-send-email 2.5.0 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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: Tue, 11 Aug 2015 07:46:58 -0000 + +Hi, + +I noticed that it makes sense to combine the --batch and --remove-all +options to notmuch. This can be used, for instance, when synchronizing +tags by transferring the tags for all changed mails. + +This series removes this (undocumented) restriction and adds some +tests. + +Best regards, +Daniel +