home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!cis.ksu.edu!frain
- From: frain@cis.ksu.edu (Jerry Frain)
- Newsgroups: gnu.emacs.help
- Subject: Re: How do I set the variable 'vm-auto-folder-alist'
- Date: 14 Sep 92 16:05:03 GMT
- Organization: Kansas State University
- Lines: 37
- Message-ID: <frain.716486807@depot.cis.ksu.edu.cis.ksu.edu>
- References: <MEYER.92Sep14100153@ibsen.geomatic.no> <RENS.92Sep14080257@lorax.shearson.com>
- NNTP-Posting-Host: depot.cis.ksu.edu
-
- rens@lorax.shearson.com (Rens Troost) writes:
-
-
-
- > In article <MEYER.92Sep14100153@ibsen.geomatic.no> meyer@geomatic.no (Harald Martens Meyer) writes:
-
-
- > (Maybe an example or two...)
-
- > Well, Here's mine:
-
- > (setq vm-auto-folder-alist
- > '(
- > ("From"
- >
- > ("^\\([^\@ ]+\\)" . (buffer-substring (match-beginning 1) (match-end 1) ))
- > )))
-
- > What this does is give me the user name (if it is a well-formatted
- > INET address) as the default folder.
-
- Here's mine:
-
- (setq vm-auto-folder-alist
- '(("From"
- ("<\\(.*\\)\\(@.*\\)>" . (buffer-substring (match-beginning 1) (match-end 1)))
- ("\\(.*\\)\\(@.*\\)" . (buffer-substring (match-beginning 1) (match-end 1))))
- ))
-
- This covers a case that yours doesn't, namely if the address is of the
- form:
- Jerry Frain <frain@cis.ksu.edu>
-
- ------------------------------------------------------------------------------
- Jerry Frain, Systems Programmer | "Back off man, I'm a scientist."
- Kansas State University | frain@cis.ksu.edu
- Department of Computer & Info Sciences | ...!rutgers!depot!frain
-