Any idea why my Mac terminal says:

You have mail in /var/mail/lofye

How can I make it stop saying that every time I open terminal?

link|improve this question

feedback

5 Answers

up vote 13 down vote accepted

Somehow you've had a script or something similar deliver mail to your account on your local machine which is stored in /var/mail/lofye

You can either remove the folder /var/mail/lofye which will remove the alert that you have mail (as it will alert you if that folder is present and/or has unread messages) or you can use mail to read the messages before deleting them.

link|improve this answer
Thanks for the tip. Turns out a CRON is mailing me... 36,061 times :( Deleted with command: d 1-36061 – lo_fye Aug 19 '09 at 15:15
1  
You can direct the cron output to /dev/null to avoid the mail. – Chris Nava Aug 19 '09 at 19:18
1  
Where is this default text located on Mac OS X? I'd like to leave it active but change the message. – JTT Jan 17 at 21:20
feedback

I'm willing to bet it's because there are files in that folder.

Have you actually looked at the contents of the folder? If there is something in there, it will more than likely give you an idea of what caused it, and how to prevent it in the future.

From the terminal:

cd /var/mail/lofye
ls

If you don't have mail, you won't see the message (there's not even a folder for my username under mail on my mac).

link|improve this answer
feedback

type mail to view the mail. I believe d deletes it

link|improve this answer
* d should delete everything. – Lee Aug 19 '09 at 15:11
When using mailx d* will delete everything. Mail itself won't. – Diago Aug 19 '09 at 15:46
feedback

If your running ClamAV for Mac this is a known issue. The system mails you after each update and scheduled scan.

link|improve this answer
feedback

I was able to just create a .hushlogin and I've a clean Terminal now.

$ touch .hushlogin
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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