84

I find dead.letter files from time to time in my $HOME directory. What they are for?

2 Answers 2

88

Either a program tried to send mail and failed (this is more likely), or you were in the middle of writing mail and broke out, so the client saved the draft in dead.letter. From the mail man page:

Normally, when you abort a message with two interrupt characters (usually control-C), mail copies the partial letter to the file dead.letter in your home directory.

3
  • 5
    Why its size is usually 0 bytes?
    – vs06
    Commented Jul 11, 2014 at 13:54
  • @Micheal Mrozek can i do something like that dead.latter file will never generate, even program tried to send mail has failed ? Commented Aug 4, 2015 at 16:11
  • 1
    @GirdharSinghRathore: According to the man page you can prevent this behaviour by adding the word/command nosave to the line starting with the set keyword in /etc/mail.rc. I have not tested this yet however.
    – ntninja
    Commented Feb 5, 2018 at 22:31
4

In my case it was an alert for my HDD death :'(.

It's still good to know what happened by reading the content of the file.

More info are available on the file it self.

1
  • The same is true for me. I see a lot of SMART warnings and failed mounts for drives lol
    – LianSheng
    Commented Nov 18, 2022 at 3:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .