Article View: mod.computers.vax
Article #4108"You have 2 mail messages waiting"
From: xrjjm%csdr.span
Date: Mon, 06 Apr 1987 16:17
Date: Mon, 06 Apr 1987 16:17
36 lines
2305 bytes
2305 bytes
Comment: Begin User Supplied Mail Headers.
*Site: NASA Goddard Space Flight Center - Greenbelt, Maryland, USA.
*From: John J. McMahon, Systems Programmer, STX - ST Systems Corporation.
*Project: COBE Science Data Room (CSDR), Code 401.1
*Reply-To: (Arpa-Internet) XRJJM%CSDR.SPAN@JPL-VLSI.ARPA
*Reply-To: (Bitnet) ZMJJM@SCFVM
*Reply-To: (Span/Physnet/Hepnet) 6173::XRJJM = CSDR::XRJJM (Node 6.29)
*Reply-To: (TEXnet) UTADNX::UTSPAN::CSDR::XRJJM
Unfortunately, the documenation of the 2 primary MAIL files
(SYS$SYSTEM:VMSMAIL.DAT and MAIL.MAI) is severely lacking, the information
I have was derived from the fiche.
Anyhow SYS$EXAMPLES:MAILUAF.COM is a good basis for getting info out
of VMSMAIL.DAT (And the number of new mail messages is stored in there).
I would advise that if you are using MAILUAF that you remove the /WRITE
qualifiers from the OPEN statements (Better safe than sorry).
This is an excerpt from a program I posted to INFO-VAX recently,
It should report back all of the messages currently waiting.
(Usual disclaimers apply).
$ User[0,31] := 'F$GETJPI(0,"USERNAME")'
$ sysmail = "SYS$SYSTEM:VMSMAIL.DAT"
$ open /share /read file 'sysmail'
$ read /index=0 /key="''User'" file record
$ MESSAGES = F$CVUI(33*8,8,RECORD)
$ WRITE Sys$Output "You have ",messages," messages waiting."
$ Close file
Hope this helps the Vanilla VMS mail folk out!
Regards,
^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v
John J. McMahon (Fast-Eddie)
Disclaimer: Views expressed in this letter are my own,
and are not meant to represent the views of my employers.
Technical Details
Message-ID:
<870406081730.04q@Jpl-VLSI.ARPA>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!JPL-VLSI.ARPA!xrjjm%csdr.spanShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!JPL-VLSI.ARPA!xrjjm%csdr.span From: xrjjm%csdr.span@JPL-VLSI.ARPA.UUCP Newsgroups: mod.computers.vax Subject: "You have 2 mail messages waiting" Message-ID: <870406081730.04q@Jpl-VLSI.ARPA> Date: Mon, 6-Apr-87 11:17:30 EST Article-I.D.: Jpl-VLSI.870406081730.04q Posted: Mon Apr 6 11:17:30 1987 Date-Received: Thu, 9-Apr-87 00:14:09 EST Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 36 Approved: info-vax@sri-kl.arpa