From owner-freebsd-chat@FreeBSD.ORG Wed Feb 15 17:30:19 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDAAF16A422 for ; Wed, 15 Feb 2006 17:30:19 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F9FC43D49 for ; Wed, 15 Feb 2006 17:30:18 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k1FHU1xW012075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 Feb 2006 19:30:02 +0200 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id k1FHTuM4023857; Wed, 15 Feb 2006 17:29:56 GMT (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id k1FHTusB023856; Wed, 15 Feb 2006 19:29:56 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 15 Feb 2006 19:29:56 +0200 From: Giorgos Keramidas To: "Daniel A." Message-ID: <20060215172956.GA23848@flame.pc> References: <5ceb5d550602150520t6f73d714wb9cbf2de85d56449@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ceb5d550602150520t6f73d714wb9cbf2de85d56449@mail.gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.343, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.86, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: freebsd-chat@freebsd.org Subject: Re: How to filter the emails from this list X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 17:30:20 -0000 On 2006-02-15 14:20, "Daniel A." wrote: > Every once in a while, some guy sends an email to the > FreeBSD-questions mailing list using BCC, which makes the email pass > my filters, and head straight to my inbox. > I have set up a filter which checks the email address(es) the email was sent to. > So far, it looks like this: > ____ > Matches: to:(freebsd-questions@freebsd.org OR questions@freebsd.org OR > freebsd-questions@www.freebsd.org) > Do this: Skip Inbox, Apply label "FreeBSD-Questions" > ____ > Yes, FYI, some people actually write "freebsd-questions@www.freebsd.org" > > But how do I make sure that _every_ email to the gets filtered? Use a better match rule. You are filtering on the wrong criteria, namely the "to" headers. Using the standard "Sender:" header that the mailing list software adds, you can write something similar to the following procmail filter: :0 H * ^Sender: owner[^@]*@freebsd.org { :0 H * ^Sender: owner-doc-committers@freebsd.org freebsd.cvs.doc/ + :0 H + * ^Sender: owner-cvs-\/[^@]* + freebsd.cvs.$MATCH/ :0 H * ^Sender: owner-freebsd-\/[^@]* freebsd.$MATCH/ :0 H freebsd.misc/ } The most important lines are marked with '+'. These match any message sent by the mailing list software of FreeBSD.org, regardless of what the user has put in their recipient list. > I've noticed that all emails sent to the FreeBSD mailing lists get > suffixed with some text. Can I trust that this text wont change every > few weeks or so? No. But you can trust the "Sender:" header.