From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/35463 Path: main.gmane.org!not-for-mail From: Reid Rivenburgh Newsgroups: gmane.emacs.gnus.general Subject: Re: Mail splitting questions or feature requests Date: 23 Mar 2001 11:44:43 -0700 Sender: reid@c3.c3.lanl.gov Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035171203 3228 80.91.224.250 (21 Oct 2002 03:33:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:33:23 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 6380 invoked by alias); 23 Mar 2001 18:45:09 -0000 Original-Received: (qmail 6375 invoked from network); 23 Mar 2001 18:45:09 -0000 Original-Received: from c3.lanl.gov (HELO c3.c3.lanl.gov) (128.165.21.50) by gnus.org with SMTP; 23 Mar 2001 18:45:09 -0000 Original-Received: from toespaz.c3.lanl.gov (toespaz.c3.lanl.gov [128.165.20.7]) by c3.c3.lanl.gov (8.9.3+Sun/8.9.1) with ESMTP id LAA01753; Fri, 23 Mar 2001 11:45:07 -0700 (MST) Original-Received: (reid@localhost) by toespaz.c3.lanl.gov (8.9.3+Sun/c93112801) id LAA12632; Fri, 23 Mar 2001 11:44:43 -0700 (MST) X-Authentication-Warning: toespaz.c3.lanl.gov: reid set sender to reid@lanl.gov using -f Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-Reply-To: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.2 (Thelxepeia) Original-Lines: 24 Xref: main.gmane.org gmane.emacs.gnus.general:35463 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:35463 Kai Großjohann writes: > Yes, it's possible. You'll have to learn a little about Lisp > though. Lessee... > (setq known-group '( ("known1" "group1") ("known2" "group2") )) > (setq nnmail-split-fancy > `(& (| ,@(mapcar (lambda (x) (cons "from" x)) known-group)) > ,@(mapcar (lambda (x) (cons "to" x)) known-group))) > Note "`" vs "'". You might also wish to try > (cons 'to x) > rather than > (cons "to" x) > All completely untested. Very impressive! I'll give it a try. Thanks for all your help with this. Reid