From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/5508 Path: news.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.user Subject: Re: Fancy Splitting within a split Date: Tue, 09 Aug 2005 11:35:22 -0400 Organization: Massachusetts Institute of Technology Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671212 27687 80.91.229.2 (31 Jan 2006 01:33:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:33:32 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:35:24 2006 Original-Path: quimby.gnus.org!uio.no!news.glorb.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news2.wam.umd.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (usg-unix-v) Cancel-Lock: sha1:NNu+ms549wvSuWCrL3u4+3Lm438= Original-NNTP-Posting-Host: DEPARTMENT-OF-ALCHEMY.MIT.EDU Original-X-Trace: 1123601722 senator-bedfellow.mit.edu 563 18.7.16.69 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:5650 Original-Lines: 34 X-Gnus-Article-Number: 5650 Tue Jan 17 17:35:24 2006 Xref: news.gmane.org gmane.emacs.gnus.user:5508 Archived-At: currentlyeddie@rogers.com writes: > Currently, I split all mail from a writer's e-mail list to one group, > with this basic nnmail-split-fancy value: > ("to" "writers@foo\\.edu" "list.writers") > ;; addy mangled > > List members add subject headers to their mails-- ie, SUB for > submissions, FILL for general chatter. What I want is a split that first > checks if the mail is from the list, then sorts it according to subject > keyword, and then puts any mail without a keyword into a > list.writers.misc group. The manual seems fuzzy on how this is done, if > it can be. Can someone share the recipie? Untested: (setq nnmail-split-fancy '(| (to "writers@foo\\.edu" (| (& ("subject" "SUB" "list.writers.sub") ("subject" "FILL" "list.writers.fill")) "list.writers.misc")) "misc")) That is, if the To:, Cc:, etc. header contains the writers list, then send it to the all of list.writers.sub and list.writers.fill if appropriate, or list.writers.misc otherwise. If it doesn't go to the writers list, file under "misc". You could flatten this by a level if you only wanted the first SUB, FILL, etc. --dzm