home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / emacs / help / 4118 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.5 KB  |  50 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!shearson.com!newshost!rens
  3. From: rens@lorax.shearson.com (Rens Troost)
  4. Subject: Re: How do I set the variable 'vm-auto-folder-alist'
  5. In-Reply-To: meyer@geomatic.no's message of Mon, 14 Sep 1992 09:01:53 GMT
  6. Message-ID: <RENS.92Sep14080257@lorax.shearson.com>
  7. Sender: news@shearson.com (News)
  8. Reply-To: rens@shearson.com
  9. Organization: Lehman Brothers
  10. References: <MEYER.92Sep14100153@ibsen.geomatic.no>
  11. Date: Mon, 14 Sep 1992 12:02:57 GMT
  12. Lines: 36
  13.  
  14.  
  15.  
  16. In article <MEYER.92Sep14100153@ibsen.geomatic.no> meyer@geomatic.no (Harald Martens Meyer) writes:
  17.  
  18.  
  19.    (Maybe an example or two...)
  20.  
  21.  Well, Here's mine:
  22.  
  23.   (setq vm-auto-folder-alist 
  24.        '(
  25.       ("From"
  26.             
  27.      ("^\\([^\@ ]+\\)" . (buffer-substring (match-beginning 1) (match-end 1) ))
  28.      )))
  29.  
  30. What this does is give me the user name (if it is a well-formatted
  31. INET address) as the default folder. If you are at an oddly-configured
  32. site, you might want to (setq vm-gargle-uucp t).
  33.  
  34. The documentation is a little confusing, and should probably provide
  35. an examnple. It says:
  36.  
  37.     buffer.  You can use the match data from any `\( ... \)' grouping
  38.     constructs in REGEXP along with the function buffer-substring
  39.     to build a
  40.  
  41. -Rens
  42.  
  43.  
  44. --
  45.   __   ___  ,    __  
  46.  /__) /__  /| / (    |  J. Laurens Troost    Lehman Brothers Technical Services
  47. /  \ (___ / |/ __)   |  *Opinions expressed herein are mine. Mine, I tell you!*
  48. -------------------------------------------------------------------------------
  49. INET: rens@shearson.com        VOICE: (212) 464-3705        FAX: (212) 464-2040
  50.