aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/recover.go
Commit message (Collapse)AuthorAgeFilesLines
* recover: recover emails from tempdir after a crashKoni Marti2022-01-291-0/+110
implements a recover command that searches the local temp dir for aerc emails. If a file is found and selected, a new composer tab will open with the file contents as the message body. No header data is stored in the temp file and thus this information cannot be recovered. Recover will not remove the temporary file unless the force flag (-f) is explicitly used. This recovery method only works when the editor buffer is saved to disk and the Close() function of the composer has not been called yet. Sending, postponing or quitting will call the Close() function which removes the temporary file completely. After Close() is called, no recovery is possible anymore. Signed-off-by: Koni Marti <koni.marti@gmail.com>