diff options
author | Vitaly Ovchinnikov <v@postbox.nz> | 2023-06-07 14:27:13 +0300 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-10 19:58:14 +0200 |
commit | 5fc6c8408450a8a7e7b6d33632155d6aca0db9be (patch) | |
tree | f8430210630e2233b80b7a6f45d89d5c9033f3d8 /config/compose.go | |
parent | edd4752268b266d697be51733599b708e4ae449a (diff) | |
download | aerc-5fc6c8408450a8a7e7b6d33632155d6aca0db9be.tar.gz |
save: new option for saving attachments
Add a new `-A` option to `:save` that works in the same manner as `-a`,
but saves all the named parts of an email, not just attachments.
The reason is that I have an email with this structure:
multipart/related
multipart/alternative
text/plain
text/html
image/png (image001.png)
image/png (image002.png)
image/png (image003.png)
text/plain (env.txt)
Where the `env.txt` is a "real" attachment, while the images are just a
part of the HTML version of the email. However, in this particular email
it was important to see them which can't be done with text UI and
opening the HTML part with the browser also didn't work. Saving them to
a temorary folder did the job and this can be useful in other scenarios.
So before the patch we could do `:save -ap /some/path` and get just the
`env.txt` saved there.
After the patch we could also do `:save -Ap /some/path` and get all the
images and the text file saved into the folder.
Signed-off-by: Vitaly Ovchinnikov <v@postbox.nz>
Tested-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'config/compose.go')
0 files changed, 0 insertions, 0 deletions