aerc/commands/account
Koni Marti cdec23323c recover: recover emails from tempdir after a crash
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>
2022-01-29 22:01:25 +01:00
..
account.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
cf.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
clear.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
compose.go compose: add default template for new messages 2022-01-19 21:42:41 +01:00
connection.go imap: add manual {dis,}connect support 2021-11-05 10:45:31 +01:00
mkdir.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
next-folder.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
next-result.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
next.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
recover.go recover: recover emails from tempdir after a crash 2022-01-29 22:01:25 +01:00
rmdir.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
search.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
select.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
sort.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
view.go go.mod: change base git url 2021-11-05 10:21:45 +01:00