From 5b3acb8034e78680eb8dca472af5dd72af57414e Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 19 Jan 2020 20:22:56 +0100 Subject: msgview/save: Adapt to already decoded reader The functionality was broken since the decoding changes. This commit also simplifies the code (in my view) to make the application logic easier to follow. The docs are updated accordingly (the feature was poorly documented). As far as I am aware there should be no breaking changes (and is certainly still in the spec of the prior documentation) --- doc/aerc.1.scd | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'doc/aerc.1.scd') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index c0e8ad4..38c0bd4 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -240,13 +240,18 @@ message list, the message in the message viewer, etc). Saves the current message part in a temporary file and opens it with the system handler. -*save* [-p] +*save* [-fp] Saves the current message part to the given path. + If the path is not an absolute path, general.default-save-path will be + prepended to the path given. + If path ends in a trailing slash or if a folder exists on disc, + aerc assumes it to be a directory. + When passed a directory :save infers the filename from the mail part if + possible, or if that fails, uses "aerc_$DATE". - If no path is given but general.default-save-path is set, the - file will be saved there. + *-f*: Overwrite the destination whether or not it exists - *-p*: Make any directories in the path that do not exist + *-p*: Create any directories in the path that do not exist *mark* [-atv] Marks messages. Commands will execute on all marked messages instead of the -- cgit 1.4.1-2-gfad0