Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!CINCOM.UMD.EDU!todd From: todd@CINCOM.UMD.EDU.UUCP Newsgroups: mod.computers.vax Subject: re: Number of NEWMAIL messages Message-ID: <8704042005.AA19136@ucbvax.Berkeley.EDU> Date: Sat, 4-Apr-87 13:07:00 EST Article-I.D.: ucbvax.8704042005.AA19136 Posted: Sat Apr 4 13:07:00 1987 Date-Received: Sun, 5-Apr-87 12:58:21 EST Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "TODD AVEN" Distribution: world Organization: The ARPA Internet Lines: 24 Approved: info-vax@sri-kl.arpa The number of new mail messages as reported during login is stored in SYS$SYSTEM:VMSMAIL.DAT in a byte (word? longword? I don't remember) field along with information such as your MAIL personal name, your mailfile directory, and various other options you can SET within mail. The file is indexed by username. I wrote a program once that took as argument a username, read through the users mailfile (even in subdirectories if that option is in use) counting the number of messages in folder NEWMAIL, and corrected the number in VMSMAIL.DAT. The only problem was that I wantonly extended the record lengths by using a fixed-length string in a variable length record (sigh). If I clean it up and enough people want it I can post, it's not all that big. The newmail counting program is useful for 'action at a distance', but is not all that necessary. Individual users can repair the count by using the command READ/NEW on an EMPTY NEWMAIL FOLDER as many times as there are fictitious new mail messages. Ignore the 'no more messages' warning when performing this repair. Todd Aven the Softwear Sweatshop todd@cincom.umd.edu todd@umcincom[.bitnet] ------