From e56ceb099e23cf170750758c67f00713bff1cce1 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Tue, 11 Jun 2019 11:26:13 -0700 Subject: Support directories in path to :save This adds new functionality to :save in the message view for specifying directories in the path. A new flag, -p, is also added to :save for automatically creating any directories in the path that do not exist. If the path ends in a / (e.g. "Downloads/mail/") or if the path is an existing directory, the part's file name is the filename from the mail header for the part. Otherwise, it uses the last element in the path as the filename (e.g. 'blah.jpg' is the filename if the path is 'Downloads/mail/blah.jpg') --- doc/aerc.1.scd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/aerc.1.scd') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 229868f1..7b09531b 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -119,9 +119,11 @@ message list, the message in the message viewer, etc). Downloads and pipes the current message part into the given shell command, and opens a new terminal tab to show the result. -*save* +*save* [-p] Saves the current message part to the given path. + *-p*: Make any directories in the path that do not exist + *close* Closes the message viewer. -- cgit