01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
If you are in a login shell, then no mail file is
reported unless it has been modified after the
time the shell has started up, to prevent redun-
dant notifications. Most login programs will tell
you whether or not you have mail when you log in.
So *why* is CheckMail depreciated? Because OpenSSH sees no
reason to perform cross-platform new mail notifications when
it could be handled by the PAM instead. It's not really
a login tool's job to tell you that you have new email.
session optional pam_mail.so
UsePAM yes
% ssh arno
masao@arno's password:
You have new mail in /var/mail/masao.
Last login: Tue Mar 8 17:04:05 2005 from nile.slis.tsukuba.ac.jp
Welcome to Turbolinux.
masao@arno%