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 C32AE6DE0C5F for ; Fri, 30 Sep 2016 11:02:12 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.055 X-Spam-Level: X-Spam-Status: No, score=-0.055 tagged_above=-999 required=5 tests=[AWL=0.056, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, UNPARSEABLE_RELAY=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 4iqkIiX0yewR for ; Fri, 30 Sep 2016 11:02:11 -0700 (PDT) X-Greylist: delayed 510 seconds by postgrey-1.35 at arlo; Fri, 30 Sep 2016 11:02:11 PDT Received: from elendil.m0g.net (elendil.m0g.net [212.83.155.195]) by arlo.cworth.org (Postfix) with ESMTPS id 2C5CE6DE0C1B for ; Fri, 30 Sep 2016 11:02:11 -0700 (PDT) Received: from authenticated-user (elendil.m0g.net [212.83.155.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by elendil.m0g.net (Postfix) with ESMTPSA id 387AC2A0A8A for ; Fri, 30 Sep 2016 19:53:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=m0g.net; s=mail; t=1475258017; bh=k6Yk98qLRGOEOdbuTO7whBzXZxKrCN4CpicIO8bwMVU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=WBQUT6f9rD0Mgy4kWNAVumftnAqK1EVIm+sExCAuOhleey2az+Fpr9ypKYBuZNqfw a88z4QfHjxE/oN00RuTMV+cDGq1RNuICHeVfCjIGjYVkUjZ5Y8zVRMwiWm6QMjoixH rnncKrI9XWYk18hs4LlDPTsZBz44nZ8t6agI4LWrnM+LXNVspB/X6Mn2ZpSgNuAC99 FW5h3dx60aHGv8cAVsHhlFldu9N97qbbQhS+Rxhlt8NVa5uL+ne9k3RIoqlnTMM4Qw OxlouqXBFvHQhdwryHHD2r5zq9DFDiBQ+xhT73aTnNmsbLDmKriXTWaY+6Mibbf+Vq 0AHPFnTdAHuqA== Received: from authenticated-user (elendil.m0g.net [212.83.155.195]) Date: Fri, 30 Sep 2016 19:53:31 +0200 From: Guyzmo To: notmuch@notmuchmail.org Subject: Re: filter for List-Id ? Message-ID: <20160930175330.rsxtzdm3sdu4bcdo@BuGz.eclipse.m0g.net> References: <87fuohlc6l.fsf@we.make.ritual.n0.is> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87fuohlc6l.fsf@we.make.ritual.n0.is> 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: Fri, 30 Sep 2016 18:02:12 -0000 Hi, On Fri, Sep 30, 2016 at 02:00:50PM +0000, ng0 wrote: > Ricardo told me: > > Notmuch should be able to filter by list. With mu4e I match for > > “list:bug-guix.gnu.org”. All emails to the bug-* lists contain a header > > for “List-Id”, which you may be able to match on. > ( https://lists.gnu.org/archive/html/help-guix/2016-09/msg00082.html ) to get around that issue, what I do is that I added an afew rule that checks for the presence of `List-Id` and if there is, it's automagically adding the `ml` tag. Then when comes the time for searching, you can just select all mails that has a to/cc of gnu.org and the tag ml (which will exclude your direct correspondence with gnu members ☺). You can also add the content of the List-Id as a tag, but that can be dangerous… You never know what can of crazy 1000 characters thing you'll get in a spam (because some spamlists are using the `List-Id:` header!) HTH, -- Guyzmo