From owner-ntemacs-users@june  Wed Dec 18 04:59:37 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Wed" "18" "December" "1996" "12:11:13" "GMT" "Andrew Innes" "andrewi@harlequin.co.uk" nil "41" "Re: vm nfs access to /var/spool/mail file" "^From:" nil nil "12" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.3+CSE/7.2ju) with SMTP id EAA28867 for <voelker@june.cs.washington.edu>; Wed, 18 Dec 1996 04:59:36 -0800
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id EAA22352 for <voelker@joker.cs.washington.edu>; Wed, 18 Dec 1996 04:59:36 -0800
Received: from holly.cam.harlequin.co.uk (holly.cam.harlequin.co.uk [193.128.4.58]) by june.cs.washington.edu (8.8.3+CSE/7.2ju) with SMTP id EAA27681 for <ntemacs-users@cs.washington.edu>; Wed, 18 Dec 1996 04:11:30 -0800
Received: from propos.long.harlequin.co.uk by holly.cam.harlequin.co.uk; Wed, 18 Dec 1996 12:11:16 GMT
Received: from woozle.long.harlequin.co.uk (woozle [193.128.93.77]) by propos.long.harlequin.co.uk (8.6.12/8.6.12) with SMTP id MAA12585; Wed, 18 Dec 1996 12:11:13 GMT
Message-Id: <199612181211.MAA12585@propos.long.harlequin.co.uk>
In-Reply-To: <199612180041.QAA08457@argon.Teknowledge.COM> (message from Chris 	McMahan on Tue, 17 Dec 1996 16:41:36 -0800 (PST))
From: Andrew Innes <andrewi@harlequin.co.uk>
To: cmcmahan@teknowledge.com
Cc: ntemacs-users@cs.washington.edu
Subject: Re: vm nfs access to /var/spool/mail file
Date: Wed, 18 Dec 1996 12:11:13 GMT

On Tue, 17 Dec 1996 16:41:36 -0800 (PST), Chris McMahan <cmcmahan@teknowledge.com> said:
>Running Windows NT 4.0 and emacs 19.33
>
>I am currently using the VM mail program with NTEmacs 19.33, using the
>pop mail capability of vm.
>
>I've got NFS mounting, with my /var/spool/mail/ directory mounted as
>drive "f:", but I can't seem to find a suitable way of setting the spool
>directory's location correctly for VM.
>
>I've tried setting the vm-spool-files variable in my .vm file to any
>number of combinations of "f:/cmcmahan" "F:/cmcmahan" "f\:/cmcmahan"
>etc..., but none are recognized.
>
>I've tried setting my environment variable MAILPATH to f:\, then
>commenting out the vm-spool-files setting, but again no luck.
>
>I'm already saving my mail in folders using NFS mounts. Is it possible
>to use an NFS-mounted /var/spool/mail file with VM, or am I stuck
>typing my password every time for the POP connection (don't want my
>password in the .vm file for obvious reasons).

I'm not familiar with VM, but I would guess that VM uses "movemail" to
fetch mail from spool files, as RMAIL and Gnus do.  That being the case,
the problem is that movemail's direct spool file access is disabled by
default on NT, because the call to lock the spool file while reading it
does not work on Samba drives (at least not the ones we have here, which
appears to be version 1.9.13).

Without proper locking you *will* eventually lose mail, so I decided to
err on the side of caution and disable direct access altogether.
However, all the code is there - if you can recompile movemail you just
need to comment out the #define DISABLE_DIRECT_ACCESS near the top of
lib-src/movemail.c.  You are responsible for ensuring that your NFS
software does do proper file locking though.

Personally, I would find a way to hack VM to remember your POP password,
at least during your Emacs session, so you only have to type it once.
RMAIL and Gnus both do that.

AndrewI

