How to remove the “You have mail.” message in Terminal
“You have mail.” started sowing at the top of every new terminal window I opened yesterday. After a bit of googling and no luck with the
unset MAILCHECK command I found suggested in most places, StackExchange came to my rescue once again. Here's what worked for me.
If you type
To get rid of these messages, as well as the “You have mail.” notification, open Finder and in the menu bar select
Go ➜ Go to Folder. In the sheet, type in
user is the name of the account on your machine you're currently logged into. In my case,
/var/mail/Elliot. You should only see one file in there which should be deleted.
Once that's done, empty your trash and restart Terminal. The message should be gone.