From d64ceba2cc8d8d1624348a76c7e7a02e385e6d0a Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Thu, 24 Mar 2022 09:26:06 +0100 Subject: save: add -a option to save all attachments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow saving all message parts that have the content disposition "attachment" header to a folder. Suggested-by: Ondřej Synáček Signed-off-by: Robin Jarry Acked-by: Koni Marti Tested-by: Moritz Poldrack --- doc/aerc.1.scd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/aerc.1.scd') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 27384ade..dda8aedf 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -337,12 +337,12 @@ 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. Any given args are forwarded to the open handler -*save* [-fp] +*save* [-fpa] 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. + If path ends in a trailing slash or if a folder exists on disc or if -a + is specified, 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". @@ -350,6 +350,8 @@ message list, the message in the message viewer, etc). *-p*: Create any directories in the path that do not exist + *-a*: Save all attachments. Individual filenames cannot be specified. + *mark* [-atv] Marks messages. Commands will execute on all marked messages instead of the highlighted one if applicable. The flags below can be combined as needed. -- cgit