Every now and then I log in to terminal (in OS X) to mess around and stuff but I logged in this time and I got this message to start…
Last login: Fri Apr 21 19:15:30 on console
Welcome to Darwin!
You have mail.
$
Its all good except for the “you have mail” I dont know what mail this is whether it is linked to OS X’s mail program (I dont think it is) or whether it is a standard thing. It’s not a huge issue, but I wouldnt mind knowing what it’s about.
I never really thought about it much, but you’re right that 99.9% of the people in the world with Macs have the email programs configured to work with POP mail servers and other off-Mac services, not check the mailbox on the computer itself.
Of course, in the normal operation of your system, it shouldn’t be sending you email (though it would be nice if it were to send you status updates), but sometimes you’ll find that a system daemon (always running background program) might have something it needs to report, and that’s usually what it is.
There are a number of different Unix command-line based email programs, including the Elm Mail System that I wrote many many moons ago, but the best choice with a stock Mac OS X system is Berkeley Mail, also known as mailx.
It’s rudimentary, but quite functional for this task. Let me show you, since I happen to have some system email on my main Mac too.
Welcome to Darwin!
You have new mail.
$ mailx
Mail version 8.1 6/6/93. Type ? for help.
“/var/mail/taylor”: 1 message 1 new
>N 1 taylor@G5-Desktop.lo Mon May 1 23:00 19/989
“Cron <taylor@G5-Desktop> “/Library/”
&
Unsurprisingly, it’s a message from the cron process which runs all the scheduled administrative tasks. Apparently there was some sort of glitch surrounding the folder “/Library/” and it was sent at exactly 11pm on May first.
To actually read the message, I can either type in the message number in the mailbox (it’s “1” in this case) or just press Return:
Message 1:
From taylor@G5-Desktop.local Mon May 1 23:00:01 2006
X-Original-To: taylor
Delivered-To: taylor@G5-Desktop.local
From: taylor@G5-Desktop.local (Cron Daemon)
To: taylor@G5-Desktop.local
Subject: Cron <taylor@G5-Desktop> “/Library/Application Support/Symantec/Scheduler/SymSecondaryLaunch.app/Contents/schedLauncher ” 0 “/Applications/Symantec Solutions/LiveUpdate.app/Contents/MacOS/LiveUpdate” ” ” “oapp” “aevt” “exAG” “-update LUdf”
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=taylor>
X-Cron-Env: <USER=taylor>
X-Cron-Env: <HOME=/Users/taylor>
Date: Mon, 1 May 2006 23:00:00 -0600 (MDT)
/bin/sh: line 1: /Library/Application Support/Symantec/Scheduler/SymSecondaryLaunch.app/Contents/schedLauncher : No such file or directory
&
Ah, that looks bad. It appears that my Symantec Antivirus program isn’t properly installed for some strange reason and when the cron job tries to run the scheduled “schedLauncher” program, it generates the error “No such file or directory.”
That’s worth knowing, for sure, even if this is a rather convoluted way to learn about the problem.
To delete this message now that I’ve seen it, I can simply type “delete 1”, or if I want to save it to a specific folder, I could use “save ~/Desktop/symantec-error.txt” or similar.
Tip: If you save a message, make sure you specify your Desktop folder so you can find it again (the “~” is a shorthand for your home directory, then “Desktop” is the desktop folder therein). I also suggest you specify a “.txt” rather than “.msg” or “.mbox” or “.eml” or similar: you’re not going to need to respond to the message, just have the data so you can print it or forward it along to tech.
It turns out Berkeley Mail has a lot of different features that make it a fast and simple, albeit graphically uninspiring, application. If you’re really curious, type “?” at the “&” prompt and you’ll see what’s therein.
Otherwise, once you’ve specified that you either want to save the message or messages (by doing nothing), or delete them (with the “delete” command), you can quit with “quit” and the actions will be taken and you’re done.
If you’re really dying to learn about state-of-the-art Unix interface design from, um, many decades ago, I have good coverage of both Berkeley Mail and Elm in my best-selling book Teach Yourself Unix in 24 Hours.
Hope that helps you out!
type “mail” in your terminal and thats it…
How would you configure /Applications/Mail.app to do the same thing by checking a local *folder* instead of *POP* or *IMAP*?
Thanks. This was great to help read that mail. And, as it was – I had the same issue with Symantec Antivirus