From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E27B46DE0946 for ; Sat, 22 Oct 2016 00:59:45 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.045 X-Spam-Level: X-Spam-Status: No, score=0.045 tagged_above=-999 required=5 tests=[AWL=-0.085, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 C3R2LN4UzG_I for ; Sat, 22 Oct 2016 00:59:45 -0700 (PDT) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id C377B6DE02AC for ; Sat, 22 Oct 2016 00:59:44 -0700 (PDT) Received: by mail-wm0-f67.google.com with SMTP id f193so1847181wmg.3 for ; Sat, 22 Oct 2016 00:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8PBhO80VyPRjwzGhHlKfQIN199Wxdmd0QxWdvDNGsyE=; b=f2UVxlcMWdHkGAO8ZxhQ5cRpz2oGfr2pPrhcR1Y4NBrn2OLeXctWZmtyaKJvncAhNu TeGjyNp5cyF07UBSLuB7ZRsMSMbkx0tVzGFRRHUSAifBsNO4lfOJPFXdLsHeyJm+eYme 6l4ooj7oDuuE1EZkXSjrV4aO2O7L5Jq/ZR7MGsU3GpC1sVG5eZwlf0O8ovarHm/Ep/U7 1/bdOjRUfenrudABkd+WHkaMAr2WpjLmx2zzFszbdUDIvZoMfH+2cDZFXcHVRIrkFTLT nlFUkSjJjH6vGDtA5f2oAwSscRoMxSuJgjUyfiwrBUWS0/rUXbYLxUIsHlhMfzFGJkod AOOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8PBhO80VyPRjwzGhHlKfQIN199Wxdmd0QxWdvDNGsyE=; b=Ogy19iq3OVndqp6H1tm2X7hl2xj4WjIGO5lotuvJ1lQt2BqZTnErV5AiGQ+Hk+QDCo m724qzes4M8FcJCw1uc3cQ9dcwpkzlefu7Z2qhFNk4xJE38wNMwWPQ1BQFDcHvWv+rmj K2GBuZ+rqaQwKcshX3tU+X+nzCKb5Li/azluPQgP/arv26eIX4Z3O9rTc+Dvnv1ZaBCG nHHy1PPETnyFELGmI1un2IwJndCO9iKI77lnP+WfxQlx+NTuRS/ebnoSzqRkYz71h7rB /d968JuhuU9xlBPPimfiy/wtYCUTET2MBFBS2bAnyvvSu2cArNt0jraYyRW5alG5oKrB Iw4A== X-Gm-Message-State: AA6/9Rkflf7QEwLjEKCEpv8sRO1BqrT+0jHTgxIY2SgOIwjF4dVdb47mrHox4hKVUkHbZQ== X-Received: by 10.28.125.67 with SMTP id y64mr6525357wmc.65.1477123183322; Sat, 22 Oct 2016 00:59:43 -0700 (PDT) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id l130sm2405029wmb.18.2016.10.22.00.59.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Oct 2016 00:59:42 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH] nmbug: allow excluded messages Date: Sat, 22 Oct 2016 08:59:40 +0100 Message-Id: <1477123180-19381-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sat, 22 Oct 2016 07:59:46 -0000 This makes nmbug work even if the notmuch mailing list messages are excluded (i.e., have a tag in the excluded tags list). --- I keep all my mailing list emails under an excluded tag (initially this was to test the exclude code thoroughly, but I find it convenient to keep day to day email and mailing list email separate). However, this confuses nmbug -- would the following patch be acceptable? (I think this is the only place it is needed, but I don't use nmbug much so I haven't tested thoroughly.) Best wishes Mark devel/nmbug/nmbug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/nmbug/nmbug b/devel/nmbug/nmbug index 6febf16..dc565c4 100755 --- a/devel/nmbug/nmbug +++ b/devel/nmbug/nmbug @@ -580,7 +580,7 @@ def get_status(): maybe_deleted = _diff_index(index=index, filter='D') for id, tags in maybe_deleted.items(): (_, stdout, stderr) = _spawn( - args=['notmuch', 'search', '--output=files', 'id:{0}'.format(id)], + args=['notmuch', 'search', '--output=files', '--exclude=false', 'id:{0}'.format(id)], stdout=_subprocess.PIPE, wait=True) if stdout: -- 2.1.4