From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/14927 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: Split mail on two headers Date: 07 Apr 1998 15:35:57 -0700 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035154040 19048 80.91.224.250 (20 Oct 2002 22:47:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:47:20 +0000 (UTC) Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.8/8.8.8) with ESMTP id PAA05042 for ; Tue, 7 Apr 1998 15:38:01 -0700 Original-Received: from sina.hpc.uh.edu (root@Sina.HPC.UH.EDU [129.7.3.5]) by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA20223 for ; Tue, 7 Apr 1998 17:37:47 -0500 (CDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id RAH21585; Tue, 7 Apr 1998 17:37:49 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 07 Apr 1998 17:37:13 -0500 (CDT) Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by sina.hpc.uh.edu (8.7.3/8.7.3) with SMTP id RAA21564 for ; Tue, 7 Apr 1998 17:37:04 -0500 (CDT) Original-Received: (qmail 24388 invoked by uid 504); 7 Apr 1998 22:36:48 -0000 Original-Received: (qmail 24385 invoked from network); 7 Apr 1998 22:36:47 -0000 Original-Received: from pm8-28.sba1.avtel.net (HELO org.com) (207.71.222.178) by claymore.vcinet.com with SMTP; 7 Apr 1998 22:36:46 -0000 Original-Received: (from reader@localhost) by org.com (8.8.7/8.8.7) id PAA00783; Tue, 7 Apr 1998 15:35:57 -0700 Original-To: ding@gnus.org In-Reply-To: Colin Rafferty's message of "07 Apr 1998 15:35:13 -0400" Original-Lines: 31 X-Mailer: Gnus v5.6.4/Emacs 20.2 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:14927 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:14927 Colin Rafferty writes: > Harry Putnam writes: > This is one of my fancy mail splitting rules that does something > similar to what you want: > > (from mail > (| ("\\(resent-\\)?\\(to\\|cc\\)" "craffert" "mail.daemon") > "mail.auto.spam")) > > `from' and `mail' are predefined regexp's that match the "From:" field > and the mailer-daemon sender, respectively. When you say "predefined" do you mean in emacs or gnus *.el files somewhere or do you mean that you have it 'predefined" somewhere? Runing 'eval-region' or 'eval-last-sexp' just says "Symbol function definition is void: from" > > Or, even more complicated, can it be made to match on a string in the > > body? (might be fun to play with) > > No. You cannot even write a split function that does this, since the > split is called narrowed to the header. -- Harry Putnam reader@newsguy.com