clojurewerkz/mailer — pull request #6 by fraoch (2014-05-21 21:14:07+00:00)
Title: [MF] allow merging of :body maps to enable attachments

I couldn't see how mailer could create attachments as it uses merge, which would overwrite any :body entries in message-defaults.

I've changed it to now use a deep-merge of the maps, which allows message-defaults to contain other body elements, which is how postal treats attachments.

It should now create maps like in postal's example at https://github.com/drewr/postal#attachments

Warning, i've only written the code and test to do the merging, not actually tried to send emails yet with this code. Just wanted to generate some feedback and see if this was an acceptable change or not?