🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #8985

vm-auto-folder-alist question

#8985
From: Kyle Jones
Date: Mon, 13 Jul 1992 22:59
21 lines
1318 bytes
Sami-Jaakko Tikka writes:
 > I have been trying to set up an auto-folder-alist that enables vm to
 > give reasonable defaults for save-folders.
 > 
 > I have this in my vm-auto-folder-alist:
 > ....<stuff deleted>....
 > 			     ("From"
 > 			      ("\\(.+\\)" . (sti::default-folder \\1))))
 > 
 > and the function is like this:
 > 
 > (defun sti::default-folder (address) "\
 >   Called from vm-auto-folder-alist 'From'-branch.  mail-extract gives
 > me the sender's full name from which I select the first name."
 >   (let ((name (car (mail-extract-address-components address))))
 >     (string-match "^\\([A-Za-z0-9]+\\)" name)
 >     (substring name (match-beginning 1) (match-end 1))))

You need to say

(sti::default-folder (buffer-substring (match-beginning 1) (match-end 1)))
Technical Details
Message-ID: <9207132259.AA21531@wendy-fate.UU.NET>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
References: <STI.92Jul14005240@tahma.cs.hut.fi>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f6829,67c9582c9e9ed319
X-Google-Attributes: gidf6829,public
X-Google-ArrivalTime: 1992-07-13 11:05:06 PST
Newsgroups: gnu.emacs.vm.bug
Sender: bug-vm-request@uunet.uu.net
From: kyle@wendy-fate.uu.net (Kyle Jones)
Date: Mon, 13 Jul 92 18:59:39 -0400
Message-ID: <9207132259.AA21531@wendy-fate.UU.NET>
Subject: vm-auto-folder-alist question
References: <STI.92Jul14005240@tahma.cs.hut.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!wendy-fate.uu.net!bug-vm
Lines: 21