                   (if (instance? java.io.File x) x (java.io.File. x)))]
     (doseq [part parts]
       (condp (fn [test type] (some #(= % type) test)) (:type part)
-        [:inline :attachment] (.addBodyPart mp
-                                            (doto (javax.mail.internet.MimeBodyPart.)
-                                              (.attachFile (fileize (:content part)))
-                                              (.setDisposition (name (:type part)))))
+        [:inline :attachment]
+        (.addBodyPart mp
+                      (doto (javax.mail.internet.MimeBodyPart.)
+                        (.attachFile (fileize (:content part)))
+                        (.setDisposition (name (:type part)))))
         (.addBodyPart mp
                       (doto (javax.mail.internet.MimeBodyPart.)
                         (.setContent (:content part) (:type part))))))

           :body [{:type "text/html"
                   :content "<b>some html</b>"}]}]
    (is (= "multipart/mixed" (re-find #"multipart/mixed" (message->str m))))
    (is (= "Content-Type: text/html" (re-find #"Content-Type: text/html" (message->str m))))
    (is (= "some html" (re-find #"some html" (message->str m))))))

(deftest test-inline
  (let [f (doto (java.io.File/createTempFile "_postal-" ".txt"))
        _ (doto (java.io.PrintWriter. f) (.println "tempfile contents") (.close))
        m {:from "foo@bar.dom"
           :to "baz@bar.dom"
           :subject "Test"

  (doto jmsg (.addRecipient rtype (InternetAddress. addr))))

(defn add-recipients!* [jmsg rtype addrs]
  (doto jmsg
    (.addRecipients rtype (into-array (map #(InternetAddress. %) addrs)))))

(defn add-recipients! [jmsg rtype addrs]
  (when addrs
