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 name.

<#part type="application/pdf" filename="old-name.pdf" recipient-filename="new-name.pdf" name="new-name.pdf" disposition=attachment>

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?

1 Answer 1


This seems to have been solved with this commit, but I think it has not yet been released.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.