Gnus development mailing list
 help / color / mirror / Atom feed
From: Norman Walsh <norm@berkshire.net>
Subject: (make-regexp...) in an alist
Date: Fri,  3 Oct 1997 17:15:54 -0400	[thread overview]
Message-ID: <2655-Fri03Oct1997171554-0400-norm@berkshire.net> (raw)

Hello World,

I'm converting over to nnmail-split-methods from my old
home-grown perl+procmail splitting system.  (Hey, gnus does
everything else, why deprive it of this one pleasure ;-)

So I started building the nnmail-split-methods alist and discovered
that there are some parts I just don't want to build by hand.
Then I found (make-regexp) and was happy again.

But now the question is, how do I build the nnmail-split-methods
alist with the _value_ of (make-regexp) in it?

I'm looking for something to replace this sort of thing (which
is clearly wrong):

(setq nnmail-split-methods
      '(("letterpress" "Sender:.*letpress@")
	("minolta" "To:.*minolta-l")
	("emacs.ding" "To:.*ding@")
	("spam" (make-regexp '("From:.*@savetrees.com"
			       "From:.*@ispam.net"
			       "From:.*@earthlink.net"
			       ...etc. add nauseum here
			       "Subject:.*are you being investigated")))
	("dssslist" "To:.*dssslist")))

Sorry this is only a quasi-gnus question, I'm just hoping for
the kindness of elisp wizards ;-)

--norm


             reply	other threads:[~1997-10-03 21:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-03 21:15 Norman Walsh [this message]
1997-10-03 22:05 ` William M. Perry
1997-10-04 19:10   ` Hrvoje Niksic
1997-10-04  0:12 ` Paul Franklin
1997-10-04  1:55 ` Stefan Waldherr

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=2655-Fri03Oct1997171554-0400-norm@berkshire.net \
    --to=norm@berkshire.net \
    /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).