Re: How to restore my mail?
- To: mutt-users@xxxxxxxx
- Subject: Re: How to restore my mail?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Thu, 19 Mar 2009 21:03:51 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=M+/QIlujrFZiDpEg2ar4ad8Y3Dc=; b=fVno tCJo1RLVJgD+nihzFyu9XGxTUpFZDTfaG++PF5uNvWc9t7zqp2kqSJhvxyIwuBVl kt7zayTZ+Y/Dt+Hl7Dc3NW/si0dlygHQCxyg85e4ewp03QD4dwDbnSyQJ55M/RMy x0BU0v7KfObU5kBreMUyFbNCHW2j5lkJCyqjPjw=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=I0yIR9CAJtXysjoUw8EDu4QNRzLaRXD5bLvqf2bI+zKYo9vExeQtjiX1br++3oshpMQbsM6uUWQ5OsXHW+ZutpFWdtVqJqOrl88XEUz+LYpeaGgZNaFhwd6vsoSi6FalhccR+KjT+RVVT8l5ZxIKOikEA1OdIhoXrb/V2NCJmBg=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090320012037.GA4286@xxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090320012037.GA4286@xxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-03-15)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You *might* be able to restore it, *if* you use an alternate temp
directory (i.e. if you set the $TMP environment variable, or the
$tmpdir muttrc configuration setting, or maybe if your editor keeps
draft files in a nonstandard place).
Here, I'll walk you through it:
> today I started to write a mail
At this point, your mail was stored partly in the memory of your text
editor (vim/emacs/pico, or whatever you use) and partly in a temporary
directory on your disk (usually /tmp, or $TMP or $tmpdir, if you
specify one of them in your ~/.muttrc). If your editor keeps draft
files somewhere, there may have been a version of it there. Most
editors that use draft files keep them in the same directory as the
file they're editing (so, by default, with most common editors, the
draft file would also be stored in /tmp).
> stopped (= postponed)
At this point, your mail was saved to your $postponed folder and
deleted from the temporary directory. Your editor deleted its draft
file.
> resumed writing
At this point, the mail was written to a temporary file on your disk
(the same as composing the message the first time) and *deleted* from
your $postponed folder. When your text editor loaded, it copied the
message into memory, and maybe also into a draft file.
> and - experienced a short power outage.
At this point, the message was still technically saved to disk in that
temporary file, though of course not including any unsaved changes.
> No problem so far, but after booting my machine again, I can't find
> the mail.
BUT when you booted your machine, your operating system automatically
deleted the contents of /tmp. This is considered a security feature,
as well as simply good housekeeping. IF you had $TMP or $tmpdir
pointed elsewhere, such as ~/.tmp/ or something similar, then your
mail will still be there, in a file beginning with "mutt-". IF your
editor keeps draft files somewhere other than the same directory as
the file being edited (i.e. someplace that wasn't in /tmp), you may be
able to recover it that way too.
> It's not in the "postponed" file anymore. So my question is:
> Where can I find my mail resp. how can I restore it?
You *may* be out of luck.
Here's hoping you aren't! Good luck!
~Kyle
- --
Truth springs from argument amongst friends.
-- David Hume
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAknC+YcACgkQBkIOoMqOI14VhQCfdWeZvgTSE3Wxqm9Ks5AcV9NN
ZU4An07HX7S8l00y13whbiL4xHJ6C9Aj
=A5A4
-----END PGP SIGNATURE-----