Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: David Z Maze <dmaze@mit.edu>
Subject: Re: Fancy Splitting within a split
Date: Tue, 09 Aug 2005 11:35:22 -0400	[thread overview]
Message-ID: <y684q9zxgw5.fsf@department-of-alchemy.mit.edu> (raw)
In-Reply-To: <pssnq3nt.fsf@rogers.com>

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
    


      reply	other threads:[~2005-08-09 15:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-09  1:50 currentlyeddie
2005-08-09 15:35 ` David Z Maze [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y684q9zxgw5.fsf@department-of-alchemy.mit.edu \
    --to=dmaze@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).