Every time I open the Terminal, I get the "You have mail." message, but I do not have any mail. When I run MAIL it reads, "No mail for myusername". I have tried several methods to prevent this from occurring every time I use the Terminal, including adding unset MAILCHECK to my bash profile.
Macos – How to prevent the “You have mail.” message from displaying every time I open the Terminal
bashemailmacosterminal
Best Answer
From the comments on the question:
check
/var/mail/<username>
There were two blank lines in
/var/mail/<username>
and removing them solved the problem.Also, deleting the
<username>
directory in/var/mail
will fix this.