How to get rid of the “You have mail” message in your terminal

Have you ever opened up your terminal in OS X and seen this message in your prompt?

Last login: Tue Sep  5 13:52:44 on ttys008
You have mail.

What mail? Where?

Your computer has a simple mail system that it has set up that can, on occasion, try to send you messages. This can happen when you try to set up a development site with a tool such as MAMP, or you try setting up a chron job, among other things.

The point is that somewhere along the way something in your system wanted to notify you about … something. Now, this isn’t an email, per se. So, don’t think this was sent to an email address or something.

Solution one: delete all messages via command line mail

You can get rid of this message by deleting all of your mail. You can do that by entering the mail command line app. Enter:


And you should see a series of messages, something like:

Mail version 8.1 6/6/93.  Type ? for help.
"/var/mail/chip": 1 message 1 new
>N  1 chip@\****.loc  Tue Sep  5 16:00  21/707   "Cron <chip@\***"

Enter the delete all command:

d *

Then, and this is the part you don’t often see, to make your changes stick, enter the quit command:


That should clear up that message.

Solution two: empty your mail log file

You can also either wipe out or delete the mail log file, which is found in the /var/mail folder.

sudo rm /var/mail/[user]

Other useful commands

To open a particular message, simply enter the corresponding number:


To re-list all of the messages again:


Read MoreLeave a comment

Link: Chrome Bias (and Finding Things To Like in Firefox)

I certainly have a Chrome bias in my work. I will add to this article one anecdotal thing: when I occasionally open Firefox, it is snappy. Firefox never really stuck for me before because it was comparatively slow. That is no longer the case, in my experience.

What web performance tools are out there?

This is the second post of my series on assessing web performance.

This is going to be a whistle stop tour of some of the tools that are out there that will help you measure your website’s performance. This is by no means exhaustive – there are lots of other tools out there that I’m completely unaware of. If there is something you think should be added please add a comment!

This is intended for someone who is wondering “Where to start?” when it comes to performance metrics.

The four tools that I am going to mention are:

  • Dev Tools “Network” tabs
  • Google PageSpeed Insights
  • Web Page Test
  • New Relic (briefly)

Read MoreLeave a comment