diff options
author | Vitaly Ovchinnikov <v@postbox.nz> | 2023-08-04 23:33:07 +0300 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-08-05 00:04:35 +0200 |
commit | 1144611a1626d8f5d7ffe02d76ea58a97a67aff4 (patch) | |
tree | 70fea6988636554d801569c11d779da34e2aa67e /doc | |
parent | c801f1582cf6d5d3e367c5e2931381559746cccf (diff) | |
download | aerc-1144611a1626d8f5d7ffe02d76ea58a97a67aff4.tar.gz |
attach: add an option to pipe the attachments in
Add the -r option to :attach so that the attachments can be piped in
from a command. Example:
:attach -r image.jpg read-jpeg-from-clipboard.sh
It takes two parameters: the attachment name (to be used in the email
and to get the MIME type from) and the command to execute and read the
output.
Signed-off-by: Vitaly Ovchinnikov <v@postbox.nz>
Acked-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/aerc.1.scd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 5b1d36f3..36b2f6bd 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -571,6 +571,7 @@ message list, the message in the message viewer, etc). *:attach* _<path>_++ *:attach* *-m* [_<arg>_] +*:attach* *-r* <name> <cmd> Attaches the file at the given path to the email. The path can contain globbing syntax described at https://godocs.io/path/filepath#Match. @@ -578,6 +579,10 @@ message list, the message in the message viewer, etc). Runs the *file-picker-cmd* to select files to be attached. Requires an argument when *file-picker-cmd* contains the _%s_ verb. + *-r* <name> <cmd> + Runs the <cmd>, reads its output and attaches it as <name>. The + attachment MIME type is derived from the <name>'s extension. + *:attach-key* Attaches the public key for the configured account to the email. |