Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Apr 10 '12 at 16:44

This question came from our site for professional and enthusiast programmers.

1  
Try adding the following line to your ~/.bashrc unset MAILCHECK –  Krzysztof Rosiński Apr 10 '12 at 16:41
2  
Read your mail. runs –  Ignacio Vazquez-Abrams Apr 10 '12 at 16:44
4  
2  
Thanks 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
8  
Please answer the question yourself so you can mark it as accepted! –  slhck Apr 10 '12 at 18:53

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.