From d860e26629fd1d59539201a53f4af3eef9f14ccf Mon Sep 17 00:00:00 2001 From: Vitaly Ovchinnikov Date: Fri, 23 Jun 2023 12:46:00 +0300 Subject: open: use the original attachment extension if possible When opening an attachment with :open command we make a temporary file and open it then. The file is named randomly, but the extension is derived from the attachment parameters. This patch checks if the attachment has a file name assigned and takes the extension from there. Otherwise it rolls back to the original mime-based extension generation. Signed-off-by: Vitaly Ovchinnikov Acked-by: Robin Jarry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 479296be..a9db8acd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `:archive` now works on servers using a different delimiter - `:save -a` now works with multiple attachments with the same filename +- `:open` uses the attachment extension for temporary files, if possible ### Changed -- cgit