Check for new Mail

Description
cm provides simple mail monitoring functionality of local mail folders. It triggers a specified external command, if new mail has arrived. Before calling a command the MAIL-environment- variable is set explicitely to the name of the monitored file.

cm uses the following order to determine the file or directory to be checked: First, it tries to monitor the file specified by the -f-switch. Second, if the latter is not specified, it tries to monitor the file specified in the MAIL-environment-variable. Third, if the latter is either unset or invalid, it tries to monitor a default file, /var/spool/mail/USERNAME, with USERNAME being the user's name. cm is capable of dealing with traditional mail folders as well as mail folders in maildir-format.

cm does not monitor remote mail folders, that is, POP- or IMAP-folders, but only local files. There are numerous other tools which do.

Manual
Click here for the online manual of cm.

Download
The current version is 0.1.3.

Last modified at 2001-04-03.