🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: INBOX file saved with wrong user na

#138
From: Scott Weikart
Date: Fri, 18 Dec 1992 03:26
19 lines
1406 bytes
> I am using VM version 5.32 beta and I noticed the following problem : 
> While reading my mail as "su", VM opens my INBOX file and gets my new mail
> (if any), but when exiting, the INBOX file and modified folders are saved
> under name "root".

Here's my modified version of vm-move-mail, with a chown to fix the ownership
of folders when I'm "su root".  Note that I'm running VM 4.41, so vm-move-mail
could have changed substantially (or even disappeared!).

   (defun vm-move-mail (source destination)
     (let ((dest (expand-file-name destination)))
       (call-process "movemail" nil nil nil (expand-file-name source) dest)
       (if (eq (user-uid) 0)
	   (call-process "chown" nil nil nil (user-login-name) dest))))

Scott Weikart			Community Data Processing (CdP): 415-322-9069
Internet: scott@igc.apc.org	Bitnet: scott%igc.apc.org@stanford
UUCP Mail Net: uunet!cdp!scott
Technical Details
Message-ID: <1400600001@igc.apc.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!gossip.pyramid.com!olivea!sgigate!sgi!cdp!scott
References: <CYRIL.92Nov27115952@mercure.cosm>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gossip.pyramid.com!olivea!sgigate!sgi!cdp!scott
From: scott@igc.apc.org (Scott Weikart)
Newsgroups: gnu.emacs.vm.bug
Subject: Re: INBOX file saved with wrong user na
Message-ID: <1400600001@igc.apc.org>
Date: 18 Dec 92 03:26:00 GMT
References: <CYRIL.92Nov27115952@mercure.cosm>
Sender: Notesfile to Usenet Gateway <notes@igc.apc.org>
Lines: 19
Nf-ID: #R:CYRIL.92Nov27115952@mercure.cosm:1663849568:cdp:1400600001:000:884
Nf-From: cdp.UUCP!scott    Dec 17 19:26:00 1992