%%s 0/0/0 %%d D 1.1 25-Mar-82 12:10:47 v1.1 1 0 %%c Version 1.1 is the Spring 1982 Distribution of the LBL/Hughes release %%c of the Software Tools Virtual Operating System software and documentation. %%T %%I 1 #-h- postmn.r 685 asc 25-mar-82 08:17:03 v1.1 (sw-tools v1.1) #-h- main 296 asc 25-mar-82 08:16:54 v1.1 (sw-tools v1.1) DRIVER(postmn) character dir(FILENAMESIZE) integer msize string mymail "mymail" string messag "You have mail [type ``msg'' to read]@n" call query("usage: postmn") call homdir(dir, LOCAL) call concat(dir, mymail, dir) if (msize(dir) > 1) call putlin(messag, STDOUT) return end #-h- msize 243 asc 25-mar-82 08:16:55 v1.1 (sw-tools v1.1) integer function msize(file) character file character getch integer n filedes int filedes open int = open(file, READ) if (int == ERR) return(ERR) for (n=0; getch(c, int) != EOF; n=n+1) if (n > 1) break call close(int) return(n) end #-h- postmn.fmt 592 asc 25-mar-82 08:17:04 v1.1 (sw-tools v1.1) .so ~bin/manhdr .hd Postmn (1) 25-Aug-80 report the presence of mail .sy postmn .ds postmn looks to see if the requestor has received any mail. If so, it reports that fact upon the standard output file with the comment "You have mail [type ``msg'' to read]". .fl Uses the file address in the mail directory to determine your home directory. .sa .nf sndmsg - utility for sending mail mail - old utility for sending mail msg - utility for reading and filing mail resolve - utility for querying the mail database about users users - utility for listing valid mail users .fi .au Joe Sventek .bu %%E 1