drewr / postal

Clojure email support
MIT License
586 stars 85 forks source link

Correctly encode filenames #94

Closed mrkam2 closed 1 year ago

mrkam2 commented 6 years ago

When attachments use filenames with unicode characters in them, sending could fail. A fix is to run a filename through javax.mail.internet.MimeUtility encodeText as following:

(fn [filename] (. javax.mail.internet.MimeUtility encodeText filename "UTF-8" nil))

Is it possible to incorporate this encoding?

tsmacdonald commented 4 years ago

This is resolved by #95.