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.

When I open Terminal it periodically tells me 'You have new mail.', some of which comes from testing web applications that I am running on localhost, which try to send it.

I find the command line mail application impossible to use.

Is there a way to read this mailbox from the OS X Mail application?

share|improve this question
    
Similar question (although not limited to OS X): serverfault.com/questions/126182/… –  lajuette Mar 25 '10 at 12:51

3 Answers 3

Have you tried the mail command?

share|improve this answer
2  
I believe that's the command line mail application he referred to. –  Matrix Mole Mar 25 '10 at 8:04
    
Hm, maybe joachim could describe his problems with this tool? –  lajuette Mar 25 '10 at 12:33
    
Another suggestion: What about redirecting the output of your cronjobs to a file? AFAIK That way you won't receive any (cron-)mails anymore. Or do you need to get the output delivered by mail? –  lajuette Mar 25 '10 at 12:35

If the output is coming from cron jobs, try putting

MAILTO=address@example.com

in the crontab before the lines that interest you

share|improve this answer

There was an article on macosxhints.com that touched on this subject. Seems like what you're looking for is in there. The other option, if you just want to read the email/delete the email messages and don't really need them to be backed up you can read the /var/mail/$USERNAME file. That file is where those mails are being stored (it's a single text file). If you delete the file you'll stop seeing those alerts showing up in the Terminal.

share|improve this answer
    
This is a very dirty hack. And why must all the old mails be deleted? Also: If the mbox is deleted the alerts will stop showing - until a new one arrives. What about adding an mail alias? –  lajuette Mar 25 '10 at 8:09
    
The comments on the thread I linked suggests enabling postfix and setting up an alias to direct those emails to another external address. A symlink won't work because Mail.app actually deletes and recreates the mbox file during it's operation (at least according to some stuff I've read). –  Matrix Mole Mar 25 '10 at 8:22
    
Hmmm, configuring an MTA can be a little bit dangerous -> open relay. And i think it's overkill for a developer's machine. –  lajuette Mar 25 '10 at 12:34
    
I've just tried the macosxhints article. I'm not sure it's still up to date for 10.6, as Mail.app doesn't seem to be storing its messages in a mbox file: inside the newly-created FOLDERNAME.mbox folder I have a Messages folder, and in that a file with an .emlx extension which seems to be the message I copied over in the instructions. –  joachim Mar 26 '10 at 15:03

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.