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 586C66DE0A73 for ; Sat, 22 Oct 2016 14:49:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.085 X-Spam-Level: X-Spam-Status: No, score=-0.085 tagged_above=-999 required=5 tests=[AWL=0.227, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, 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 Bz4CDERgMNwU for ; Sat, 22 Oct 2016 14:49:49 -0700 (PDT) X-Greylist: delayed 488 seconds by postgrey-1.35 at arlo; Sat, 22 Oct 2016 14:49:49 PDT Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net [96.114.154.163]) by arlo.cworth.org (Postfix) with ESMTPS id 9A3FF6DE02DA for ; Sat, 22 Oct 2016 14:49:49 -0700 (PDT) Received: from resomta-po-19v.sys.comcast.net ([96.114.154.243]) by resqmta-po-04v.sys.comcast.net with SMTP id y42JbAUH5GkXBy42tbWQ04; Sat, 22 Oct 2016 21:41:39 +0000 Received: from mail.tremily.us ([73.221.72.168]) by resomta-po-19v.sys.comcast.net with SMTP id y40vbbeDiS0sgy40wbL1av; Sat, 22 Oct 2016 21:39:39 +0000 Received: by mail.tremily.us (Postfix, from userid 1000) id 5D4601F8F959; Sat, 22 Oct 2016 14:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1477172377; bh=qac+v6MA6IMS2JrmwnXzg48dwtSLx2sC+ul72j+5uos=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=H2xBBksuPJ99e/h6uOSgbkI0h29TVHbvISkNOn6tTRrUJuKLDpTq/aYNqw3BUMgDe 8/qZHWPV7Me5ino5tjjUkygBLwTwngHQAtKMD2bHH4deRL5k8zhPWlivuWIxJVqGwJ jQGOavwF0yUef2yb7fCAp+MfOHvzqDAApKhCaeps= Date: Sat, 22 Oct 2016 14:39:37 -0700 From: "W. Trevor King" To: Mark Walters Cc: notmuch@notmuchmail.org Subject: Re: [PATCH] nmbug: allow excluded messages Message-ID: <20161022213937.GZ4005@odin.tremily.us> References: <1477123180-19381-1-git-send-email-markwalters1009@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aGDTCmeut6Neuydu" Content-Disposition: inline In-Reply-To: <1477123180-19381-1-git-send-email-markwalters1009@gmail.com> OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.23 (2014-03-12) X-CMAE-Envelope: MS4wfP6fofa2o7cs3XTa/iOG2gdjxOWEVP88YElCk+R/2KK/QkrFxJS6JLrhB5pOpqbBZS3gKFPncf3rxPL5PQkzIDIPD5NkNhRXPeJi1f/FZggOfKj7JhZD fBDNOXvkTQD2O4VifzJNVPotrj87f0cb7fcg3D9NbvbXImpW0fjRBV1Bke7Cbgu5N7J0pCFbghIhIioAVx/mdXsBQSJjpXqgzrI= 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 21:49:52 -0000 --aGDTCmeut6Neuydu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 22, 2016 at 08:59:40AM +0100, Mark Walters wrote: > This makes nmbug work even if the notmuch mailing list messages are > excluded (i.e., have a tag in the excluded tags list). > =E2=80=A6 > (I think this is the only place it is needed, but I don't use nmbug > much so I haven't tested thoroughly.) > =E2=80=A6 > --- a/devel/nmbug/nmbug > +++ b/devel/nmbug/nmbug > @@ -580,7 +580,7 @@ def get_status(): > maybe_deleted =3D _diff_index(index=3Dindex, filter=3D'D') > for id, tags in maybe_deleted.items(): > (_, stdout, stderr) =3D _spawn( > - args=3D['notmuch', 'search', '--output=3Dfiles', 'id:{0}'.fo= rmat(id)], > + args=3D['notmuch', 'search', '--output=3Dfiles', '--exclude= =3Dfalse', 'id:{0}'.format(id)], > stdout=3D_subprocess.PIPE, > wait=3DTrue) Besides this call, we also use =E2=80=98notmuch search =E2=80=A6=E2=80=99 i= n get_tags. We may need an --exclude=3Dfalse there too to cover folks who exclude a tag used by nmbug. And =E2=80=98notmuch dump =E2=80=A6=E2=80=99 doesn't appear to take an --ex= clude flag, although it's based on searching so I'm not sure why not. Anyhow, the idea looks good to me. I'm just not clear enough on exclude handling to know if this patch sufficiently covers it. Cheers, Trevor --=20 This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy --aGDTCmeut6Neuydu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJYC9yWAAoJEBBpoQVgXJg1Dx8P/0AteURt4A8bfhcx4GGvlm2Y J+BCKYCsHuxnxe9YKzFi6+c0j/y15a1m7EUtdxk7C4lPug/Zeuyy5yWeOBnBbP3X gzx02Cd5GleK1lIa4SeQYsK/Kxd6ysaewz12jcFPXS5o1M74LL9lBdHQ5zsDxd/u t3oq0GKqva52zDgEwXDrkwRhyFmBiPAdMvYQFZ6YIzwkBvixJeu2ifig/5Es9SXA 69dpVJXuIVFmoi1g6kjJwGXf2P5mm6230CzcyQux4y+nIFdL+k/3sf4nsKHWXzfN KkEzccyJjXglNzlxXOFPAtsJ9Xi09M41343pmqyuBuP1XZ9s6NGjMhgCGbPlrzoC BXMzzONzAltH43H91FNGbcAYameK+wsH0BBd/P6nY/nPdUvRMTDzwtqGUPYutPkT oVzlpgpjFIApo7va+BwoeIpXHeLk9KqFCdX95sxL/Jgl8wvxvmTXCw6OG8o2Nner czHnig5snhdJvo4nXIW6xk8WunBp1JoWFda8u1OY0327YmT57rrvNhbcNZK345kp xbPTiNXmsub38GeJ9UpY3u6C6i5cVUB+tWrBsB8S5R/zY8v31Uh3PJMZhmNn5TUM pzLxS7GZ8BCzfQaZ46E9wYtgwmKB098OO49qJuamtlGgman8toz3S3qJ9X6V/KLP w/Fxe3HR6NEXfFkscdje =j0CY -----END PGP SIGNATURE----- --aGDTCmeut6Neuydu--