Undeleted an email ?

Hi,

I was checking daily mail reports under some of my servers and deleted a lot of them and closed mail client.

When I reopened it, I saw that i also deleted a mail i shouldn't.

Is there a way to recover that mail ? I'm using the basic freebsd mail client.

Just a precision, the mail isn't in the mbox.

Thanks !
 
If the email doesn't show up when you 'cat' or 'less' the mailbox, it's gone. Some mail programs don't actually delete the email straightaway (they just flag it deleted), which means a different email program (or webmail) will still show the email. But if it's not physically in the mbox file, it's gone.
 
Ok, thanks for the explanations. :)

I re-checked the mbox to be sure and I don't know how but the mail is in it :r (maybe I did not press d before exiting 'mail').

I will be more prudent next time.
 
Note that the standard console mail reader will not actually delete the mail unless you expunge it ('x' or 'q', I forget -- mail(1) has all the goodies!). Otherwise, the email is just flagged with a 'd', but will still be there.
 
Back
Top