[mod.computers.vax] more on newmail messages...

ANK@CUNYVMS1.BITNET.UUCP (04/05/87)

I think this should get the messages on newmail
ofcourse change the userID to the relevent one or use generic UIC

                                                Anil

$!---------------------*cut-this-line-here*-----------------------------
$ open /share /read maifile SYS$SYSTEM:VMSMAIL.DAT
$ read /index=0 /error=doit /key="ANK" maifile record  ! CHANGE THIS TO YR I.D.
$ newmsg = F$CVUI(33*8,8,RECORD)
$ write sys$output "no. of newmsg ", newmsg
$ doit:
$ close maifile
$ exit