Path: utzoo!mnetor!uunet!husc6!rutgers!super.upenn.edu!eecae!nancy!umix!umich!mibte!gamma!pyuxp!pyuxww!sabre!faline!bellcore!clyde!burl!codas!ufcsv!beach.cis.ufl.edu!jdc
From: jdc@beach.cis.ufl.edu (Jeff Capehart)
Newsgroups: comp.os.vms
Subject: Re: Synchronizing VMSMAIL.DAT with SYSUAF file
Message-ID: <9732@ufcsv.cis.ufl.EDU>
Date: 11 Dec 87 03:22:54 GMT
References: <871209025727.01l@CitHex.Caltech.Edu>
Sender: news@ufcsv.cis.ufl.EDU
Reply-To: jdc@beach.cis.ufl.edu (Jeff Capehart)
Organization: UF CIS Department
Lines: 32

It is interesting that you can put in "dummy" records in VMSMAIL.DAT and let
userA receive mail that was intended for unknown userB.  However, it was also
mentioned that whoever sent the mail should be notified of new forwarding
address.  Here is a way that might work.  If you set the forwarding address
of unknown userB to userA, set it to a list so that is goes to something like:
userA,"please send mail to userA"  This is a nifty feature in mail.  You can
set an invalid forwarding address and it will let you do it.  However, when
someone tries to send to you, it will say unknown user "whatever garbage"
and spit back the text that was invalid in the forwarding address.  I use
this to "turn off my mail" .. set forw "I dont want mail today."  then when
someone tries to send mail to me, they get this message.  Try that.

Also, here is a spiffy little program that will check to see if there is
new mail, and also go right into mail so that you can read it (put this
in your login if you like AUTO_MAIL !)

-----
$AUTO_MAIL: ON CONTROL_Y THEN GOTO MAIL_ABORT
$if f$search("SYS$LOGIN:MAIL.MAI").eqs."" then exit
$def/user sys$output nl:
$def/user sys$error  nl:
$search sys$login:mail.mai NEWMAIL
$if $status .eq. 148340819 then exit !no strings found (matched)
$def/user sys$input sys$command
$mail
$exit
$mail_abort: exit !or some other optional error message
-----

--
Jeff Capehart 		Internet: micronaut%oak.decnet@pine.circa.ufl.edu
University of Florida	UUCP:	  ..!ihnp4!codas!ufcsv!beach.cis.ufl.edu!jdc