summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2019-06-11 11:26:13 -0700
committerDrew DeVault <sir@cmpwn.com>2019-06-14 09:48:20 -0400
commite56ceb099e23cf170750758c67f00713bff1cce1 (patch)
treebe1704aa3d6034e63a7bc28c7e2ec7748925e405 /doc
parent61206c6ac6fdc3fc884626a5b1076354f8311c33 (diff)
downloadaerc-e56ceb099e23cf170750758c67f00713bff1cce1.tar.gz
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')
Diffstat (limited to 'doc')
-rw-r--r--doc/aerc.1.scd4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd
index 229868f..7b09531 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* <path>
+*save* [-p] <path>
 	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.