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.

After Sent mails using command-line mail utility:

mail -s subject someuser@example.com
...

If I have misspelled the recipient mail address, or I want to review my old mails which have already been sent, how to do?

share|improve this question

migrated from serverfault.com Nov 27 '09 at 13:18

This question came from our site for professional system and network administrators.

    
"How to get back my sent emails" reminds me of 27bslash6.com/overdue.html –  moxn Nov 27 '09 at 10:07

3 Answers 3

up vote 1 down vote accepted

Your mail program may have the following option:

     record  If defined, gives the pathname of the file used to record all
             outgoing mail.  If not defined, outgoing mail is not saved.
             Default is norecord.

See man mail for more details on how to set the record option.

share|improve this answer

You can't unless the content of the mail is logged elsewhere (say for example, your outgoing mail server is set to record all content of all outgoing mail) which is unlikely unless you yourself (or your program/script if you called mail from such) stored a copy.

The mail program does what it says on the tin and nothing else: it sends the mail and doesn't store it anywhere.

share|improve this answer
    
What he said...in other words: You're F'K'D! –  Don Salva Nov 27 '09 at 13:56
    
...unless you set the record option in your mail program (see my answer). –  Greg Hewgill Nov 27 '09 at 18:24

Unless your mail server is logging them, there isn't any way.

share|improve this answer

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.