Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Fancy Splitting within a split
@ 2005-08-09  1:50 currentlyeddie
  2005-08-09 15:35 ` David Z Maze
  0 siblings, 1 reply; 2+ messages in thread
From: currentlyeddie @ 2005-08-09  1:50 UTC (permalink / raw)


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?
-- 
Currently Eddie!
http://www.livejournal.com/users/dedwardsauve/
Get your gnus on!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fancy Splitting within a split
  2005-08-09  1:50 Fancy Splitting within a split currentlyeddie
@ 2005-08-09 15:35 ` David Z Maze
  0 siblings, 0 replies; 2+ messages in thread
From: David Z Maze @ 2005-08-09 15:35 UTC (permalink / raw)


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
    


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-09 15:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-09  1:50 Fancy Splitting within a split currentlyeddie
2005-08-09 15:35 ` David Z Maze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).