From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/12483 Path: main.gmane.org!not-for-mail From: wmperry@aventail.com (William M. Perry) Newsgroups: gmane.emacs.gnus.general Subject: Re: (make-regexp...) in an alist Date: 03 Oct 1997 15:05:47 -0700 Message-ID: <8690wawlhg.fsf@kramer.in.aventail.com> References: <2655-Fri03Oct1997171554-0400-norm@berkshire.net> Reply-To: wmperry@aventail.com NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035152011 4013 80.91.224.250 (20 Oct 2002 22:13:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:13:31 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.7/8.8.7) with ESMTP id QAA12833 for ; Fri, 3 Oct 1997 16:11:31 -0700 Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with SMTP id SAA12693 for ; Fri, 3 Oct 1997 18:04:37 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Sat, 4 Oct 1997 00:08:52 +0200 Original-Received: (qmail 30841 invoked by uid 504); 3 Oct 1997 22:08:48 -0000 Original-Received: (qmail 30838 invoked from network); 3 Oct 1997 22:08:48 -0000 Original-Received: from newman.aventail.com (root@199.238.236.1) by claymore.vcinet.com with SMTP; 3 Oct 1997 22:08:47 -0000 Original-Received: from kramer.in.aventail.com (wmperry@kramer.in.aventail.com [192.168.1.12]) by newman.aventail.com (8.8.5/8.8.5) with ESMTP id PAA27113; Fri, 3 Oct 1997 15:08:46 -0700 (PDT) Original-Received: (from wmperry@localhost) by kramer.in.aventail.com (8.8.5/8.8.5) id PAA28814; Fri, 3 Oct 1997 15:05:48 -0700 Original-To: norm@berkshire.net Errors-to: wmperry@aventail.com X-Face: O~Rn;(l][/-o1sALg4A@xpE:9-"'IR[%;,,!m7 writes: > 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? Backquote: (setq nnmail-split-methods (list '("letterpress" "Sender:.*letpress@") '("minolta" "To:.*minolta-l") '("emacs.ding" "To:.*ding@") `("spam" ,@(make-regexp '("From:.*@savetrees.com" "From:.*@ispam.net" "From:.*@earthlink.net" "Subject:.*are you being investigated"))) '("dssslist" "To:.*dssslist"))) -Bill P.