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.
Asked
Active
Viewed 1,477 times
8
-
2Read your mail. *runs* – Ignacio Vazquez-Abrams Apr 10 '12 at 16:44
-
4see also http://unix.stackexchange.com/q/2432/4667 and http://superuser.com/q/25738/4714 – glenn jackman Apr 10 '12 at 16:47
-
yep, check /var/mail/username, as suggested by the above links; maybe something go stuck there – lupincho Apr 10 '12 at 16:49
-
just checked, even having empty directory /var/mail/username results in "you have mail", deleting the 'username' directory in /var/mail fixes this – lupincho Apr 10 '12 at 16:53
-
@maxskybarger -- if there is something in /var/mail/username indeed, you may want to look at the contents and figure out what has sent it; a lot of *nix software sends all sorts of emails by default, you may want to turn that off – lupincho Apr 10 '12 at 17:03
-
2Thanks for the clue. There were two blank lines in /var/mail/username and removing them solved the problem. – maxskybarger Apr 10 '12 at 18:23
-
8Please answer the question yourself so you can mark it as accepted! – slhck Apr 10 '12 at 18:53
-
2Try adding the following line to your ~/.bashrc unset MAILCHECK – Krzysztof Rosiński Apr 10 '12 at 16:41