Path: utzoo!utgpu!watmath!uunet!ginosko!xanth!talos!kjones From: kjones@talos.uucp (Kyle Jones) Newsgroups: gnu.emacs Subject: Re: vm-auto-folder-alist -- how? Message-ID: <1989Aug31.134955.3352@talos.uucp> Date: 31 Aug 89 13:49:55 GMT References: <8908301406.AA01144@asylum.gsfc.nasa.gov> Reply-To: kjones%talos.uucp@uunet.uu.net Distribution: gnu Lines: 34 Chris Shenton writes: > I'm a new vm convert, trying to do the following: > > (setq vm-auto-folder-alist > '( > ("Subject" > [...] > ("c++" . "gnu-emacs-c++") > [...] > ) This should be ("c\\+\\+" . "gnu-emacs-c++") to work properly. You might want the "c" to be "[Cc]" since the regexp matching of vm-auto-folder-alist is case sensitive. > ("(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") )