How can I prevent the "You have mail." message from displaying every time I open the Terminal

Solution 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.