MAILCHK.EXE - DOS Made with Borland C++ 3.1, Novell Client Netware API 1.00e, DOS 5.0 Netware 3.11, Token-Ring MAILCHKW.EXE - Windows Made with Borland C++ 3.1, OWL, Novell Client Netware API 1.00e, DOS 5.0 Netware 3.11, Token-Ring Thomas H. Smith [70674,3300] The code and programs in the accompanying files are public and may be redistributed. This text file must be included with distribution of the programs and/or source code. The code and/or programs may not be sold or distributed to others with any type of charge other than delivery or connection time unless I am contacted first and agree to it's sale. I'll want a copy of the final product, money, free access time, or something equivalent. The two EXE programs will count the number of unread Pegasus email messages. The DOS version is intended for use from within the Netware login script. The program can also be run from the DOS prompt if wanted. After displaying the number of unread mail messages it waits for a key response from the user. The windows version displays a dialog box with the amount of unread email and waits for an OK button to be pressed. Many have put this program in their windows Startup program group. Both versions display the message only if mail is there. No mail - no message. The directory for email is determined from the default connection, that is, the server that the user is logged-in to. Mail directories are made by the Netware system by default when a user is created. They are made as subdirectories of SYS:MAIL . This is where the programs look for user mail. If the mail directory is somewhere else the EXE programs will not work. The numeric value used for the directory corresponds to a numeric object-id used by Netware services. The object-id ties to Netware character ID's created by Administration for each user and other object such as routers, printers, etc. These programs were written to work with Pegasus Email. All mail files have "CNM" as the filename extension. Pegasus will mark mail that has been opened by making an '!' the mail-message files' first character. Basics of Program Logic: 1.) Determine server logged in to. 2.) Get users object ID 3.) Check if Drive O: exists as Netware drive a. If O: exists, save O: settings 4.) Make O: the mail directory. 5.) Change to drive O: 6.) Count all files with "CNM" extension that do not have '!' as first character in program name. 7.) If O: had previous Netware setting, restore it 9.) If number of files is greater than 0 and less than 1500, display message. 9.) Get user response. 10.) Exit It is possible to use these programs with other email packages. If you use another type of email and can determine how email files are marked after being read, adjust the code in the source files to suit your needs. Programming Settings: Windows: Program made in c:\bcpp\wprogs Large include directories = ..\classlib\include;..\owl\include;..\include;..\nov\include;. library directories = ..\classlib\lib;..\owl\lib;..\lib;..\nov\lib /* Note period on end of include list */ Code Generation, Defines : STRICT;WIN31 DOS: Program made in c:\bcpp\progs Large include directories = ..\classlib\include;..\owl\include;..\include;..\nov\include;. library directories = ..\classlib\lib;..\owl\lib;..\lib;..\nov\lib /* Note period on end of include list */