From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3859 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.gnus.user Subject: Re: Mailing list split Date: Sun, 06 Jun 2004 23:55:01 +0200 Organization: GNU Rox ! Message-ID: References: <874qpqet2m.fsf@mega.ist.utl.pt> <87vfi6ijrh.fsf@ursine.ca> <8765a4h70c.fsf@lizard.king> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138669871 20660 80.91.229.2 (31 Jan 2006 01:11:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:11:11 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:32:52 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.ip.ndsoftware.net!nerim.net!biggoron.nerim.net!news.gnu-rox.org!news Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: rms.gnu-rox.org Original-X-Trace: biggoron.nerim.net 1086559054 71848 213.41.134.247 (6 Jun 2004 21:57:34 GMT) Original-X-Complaints-To: abuse@nerim.net Original-NNTP-Posting-Date: Sun, 6 Jun 2004 21:57:34 +0000 (UTC) Mail-Copies-To: never X-Attribution: zeDek X-Face: "qG{UC8GPzro#PZ!Jgisuj0]=k10 f#d596CJMPGOGwB'j\^JR2g0']N%L:ylC`?.l8u#JuS#CygUA}avHHVJJ!#ub7CxX#u]g}?z,hQ;c q%v]"[$!BfS X-Accept-Language: fr-fr, en-en, en-fr User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:30U85CbexcDkufueVz6zV9QEt+s= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4000 Original-Lines: 88 X-Gnus-Article-Number: 4000 Tue Jan 17 17:32:52 2006 Xref: news.gmane.org gmane.emacs.gnus.user:3859 Archived-At: On 6 Jun 2004, Maciek Pasternacki wrote: > Sorry for posting a level lower than I should; I'm writing from > gnus-agent offline and I don't have original article here. > > On Boomtime, Confusion 11, 3170 YOLD, Paul Johnson wrote: > > > > I'm subscribed to dozens of mailing lists and I have an email > > > account through which I receive all my mailing list mails. Is > > > there a way to split the mail from that account automatically > > > based on the mailing list headers? > > [cut] > > (setq nnmail-split-methods 'nnmail-split-fancy) > (setq nnmail-split-fancy > '(| > ;;; cut -- `priority' splitting to root@myhost, abuse@myhost, > ;;; postmaster@myhost, different adrdesses I use for work etc. > > ;;; Mailing lists go here > > ;; Yahoo groups go to listserv. > ("Mailing-List" "list \\([-a-z0-9]*\\)@yahoogroups.com; contact > .*-owner@yahoogroups.com" "listserv.\\1") > > ;; Groups managed by ezmlm also. > ("Mailing-List" > "contact \\([-a-z0-9]*\\)-help@[^;]*; run by ezmlm" > "listserv.\\1") > > ;; This is single group that is on two independent servers > ;; (Polish listserver and on yahoogroups -- everyone is > ;; subscribed to both in case one wouldn't work or someone has > ;; trouble sending to one of them) that should go to single mailbox > (to "stachuriada@.*" > "listserv.stachuriada") > > ;; Not really newsgroups, just aliases to more than one person > (to "przedluzacz@some.host.dont.matter" > "listserv.przedluzacz") > (to "towarzystwo@some.other.unmeaningful.host" > "listserv.towarzystwo") > > ;; Groups that use List-Id header, usually managed by Mailman > ;; I should write a regexp like for ezmlm or yahoogroups, but > ;; this one is a bit tricky (I even don't remember why now, > ;; but it was) and I don't have time at the moment. > ("List-Id" "tlug.linux.gda.pl" "listserv.tlug") > ("List-Id" "tkabber.jabber.ru" "listserv.tkabber") > ("List-Id" "jadmin.jabber.org" "listserv.jadmin") > ("List-Id" "transwers.kombinat.nh.pl" "listserv.transwers") > ("List-Id" "zope-dev.zope.org" "listserv.zope-dev") > ("List-Id" "zope.zope.org" "listserv.zope") > ("List-Id" "ekg2-commit.lists.ziew.org" "listserv.ekg2-commit") > ("List-Id" "ekg2-devel.lists.ziew.org" "listserv.ekg2-devel") > > ;; Some totally non-standard lists > ("X-Mailing-List" "oneiro@dont.give.full.address.to.spammers" > "listserv.oneiro") ("List-Help" "http://www.postfix.org/lists.html" > "listserv.postfix") > > ;;; Here goes splitting rest of mail via BBDB to mailboxen for > ;;; people I know and finally to mbox.misc for miscellaneous spam. > > )) > > Hope it helps. > > Greets, > --japhy I use these rules which are quite powerful and efficient: ("list-unsubscribe" ".*, \t\n]+\\)-ctl@.*" "INBOX.list.\\1") ("list-unsubscribe" ".*, \t\n]+\\)-request@.*" "INBOX.list.\\1") ("list-unsubscribe" ".*, \t\n]+\\)-unsubscribe@.*" "INBOX.list.\\1") ("list-unsubscribe" ".*=unsubscribe%20\\([^<>, \t\n]+\\)>.*" "INBOX.list.\\1") These can deal with almost all my ML I am currently subscribed. -- "sometimes i feel like we're making emacs better and better because we don't know what to do with emacs once it is finished." -- AlexSchroeder on #emacs @OPN