lundi 23 mars 2015

check "newness" / "is-read" of /var/spool/mail/$USER like pam_mail for custom motd script


How can I check with bash or python (preferred) if there are some unread mails in /var/spool/mail/$USER like pam_mail does?


I'd like to use this for my own custom motd script, motd.dynamic



Aucun commentaire:

Enregistrer un commentaire