aboutsummaryrefslogtreecommitdiffstats
path: root/worker/jmap/jmap.go
diff options
context:
space:
mode:
authorVitaly Ovchinnikov <v@postbox.nz>2023-06-23 12:46:00 +0300
committerRobin Jarry <robin@jarry.cc>2023-06-25 22:33:06 +0200
commitd860e26629fd1d59539201a53f4af3eef9f14ccf (patch)
tree03304538530cdad8122ad6b58070f6c66d9b7eb0 /worker/jmap/jmap.go
parentfb99486ad073bb99ca526add707d774464159e8a (diff)
downloadaerc-d860e26629fd1d59539201a53f4af3eef9f14ccf.tar.gz
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 <v@postbox.nz> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/jmap/jmap.go')
0 files changed, 0 insertions, 0 deletions