PDA

View Full Version : Terminal mail




thecow
Dec 10, 2004, 11:16 PM
I just logged into the terminal to check my folding stats and I saw this:
Last login: Sat Dec 11 00:09:11 on ttyp1
Welcome to Darwin!
You have mail.
pcp08648217pcs:~ mattdordai$
Since when did the terminal get email? I haven't set anything up or even given it my username and password.

Edit:I found some more stuff in the mail program, but I don't know how to do anything.
Last login: Sat Dec 11 00:18:33 on ttyp1
Welcome to Darwin!
You have mail.
pcp08648217pcs:~ mattdordai$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/mattdordai": 1 message 1 new
>N 1 mattdordai@Matthew-D Sun Dec 5 12:43 128/5060 "Cron <mattdordai@loca"
& ?
Mail Commands
t <message list> type messages
n goto and type next message
e <message list> edit messages
f <message list> give head lines of messages
d <message list> delete messages
s <message list> file append messages to file
u <message list> undelete messages
R <message list> reply to message senders
r <message list> reply to message senders and all recipients
pre <message list> make messages go back to /var/mail
m <user list> mail to specific users
q quit, saving unresolved messages in mbox
x quit, do not remove system mailbox
h print out active message headers
! shell escape
cd [directory] chdir to directory or home if none given

A <message list> consists of integers, ranges of same, or user names separated
by spaces. If omitted, Mail uses the last message typed.

A <user list> consists of user names or aliases separated by spaces.
Aliases are defined in .mailrc in your home directory.
&



robbieduncan
Dec 11, 2004, 04:00 AM
Looks like you set up some sort of cron job (or a GUI did it for you?). If the job fails for some reason cron will send you a mail. As it does not know your mail address it will use <username>@local which sendmail will deliver to a local mailbox. As Mail.app is not set to check this (very unixy) mailbox you will only get that mail in mail (at the command line). Type the index number of a message to read it (in this case 1: the N 1 tells you that the message is New and at index 1). To delete a message type d <index>.