Date: Wed, 15 Feb 2006 19:29:56 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: "Daniel A." <ldrada@gmail.com> Cc: freebsd-chat@freebsd.org Subject: Re: How to filter the emails from this list Message-ID: <20060215172956.GA23848@flame.pc> In-Reply-To: <5ceb5d550602150520t6f73d714wb9cbf2de85d56449@mail.gmail.com> References: <5ceb5d550602150520t6f73d714wb9cbf2de85d56449@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-02-15 14:20, "Daniel A." <ldrada@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060215172956.GA23848>