Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ginosko!uunet!garfield!stretch!stretch.mun.edu!jeff1 From: jeff1@stretch.mun.edu (Jeff Sparkes) Newsgroups: gnu.emacs.bug Subject: Re: vm-auto-folder-alist -- how? Message-ID: <417@stretch.MUN.EDU> Date: 1 Sep 89 10:32:22 GMT References: <8908301406.AA01144@asylum.gsfc.nasa.gov> Sender: jeff1@stretch.MUN.EDU Reply-To: jeff1@stretch.mun.edu (Jeff Sparkes) Distribution: gnu Organization: Memorial University of Newfoundland Lines: 24 In article <1989Aug31.134955.3352@talos.uucp> kjones@talos.uucp (Kyle Jones) writes: Chris Shenton writes: > ("(From)|(Sender)" > ("steve" . "steve") > ("chris" . "chris") > ) There are a number of things wrong with this, but the reason it won't work is because the HEADER portion of the alist is supposed to be a literal header name, not a regular expression. The match always fails because no header will ever begin a `('. The incorrect regular expression syntax has no bearing on the problem. Use: ("From" ("steve" . "steve") ("chris" . "chris") ) ("Sender" ("steve" . "steve") ("chris" . "chris") ) Actually, this is good extension to vm. My vm-auto-folder-alist contains the exact same thing for "To" and "Cc" and "Sender".