I have a few cron jobs that mail their output to my username. I check this mail in the terminal by typing mail
. When I quit the mail program with 'q' it says "Saved X messages in mbox" (where X is the number of messages I just read).
How can I read those messages again?
Best Answer
If you wanted a full featured editor / mail client from the command line:
If you just want to see the mail you can use the
from
command to see headers or look at the files in/var/mail/${USER}
. Depending on how you disposed of messages, they also might be in your~/mbox
fileSome good reading at: