 
 (deftest test-attachment
   (let [f1 (doto (java.io.File/createTempFile "_postal-" ".txt"))
-        _ (doto (java.io.PrintWriter. f1) (.println "tempfile contents") (.close))
+        _ (doto (java.io.PrintWriter. f1)
+            (.println "tempfile contents") (.close))
         f2 "/etc/resolv.conf"
         m {:from "foo@bar.dom"
            :to "baz@bar.dom"

  (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

                  (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)))))
        (.addBodyPart mp
                      (doto (javax.mail.internet.MimeBodyPart.)
                        (.setContent (:content part) (:type part))))))
