I am using
message-send-and-exit (with mu4e) to send an email with an attachment. I would like to rename the file so that in the email it appears with a different name than my local file.
According to the docs, I should be able to do that with
recipient-filename. I also tried setting
<#part type="application/pdf" filename="old-name.pdf" recipient-filename="new-name.pdf" name="new-name.pdf" disposition=attachment> <#/part>
However, upon testing, this doesn't seem to work. When I receive the email I get in the header
Content-Type: application/pdf; name="old-name.pdf" Content-Description: old-name.pdf Content-Disposition: attachment; filename="old-name.pdf"
What is the way to achieve this?