Permalink
Browse files

Added content id

  • Loading branch information...
1 parent 6073f37 commit 09ed8a05a861afa260532ec936b2336d4b6e7b0c Kevin DeJong committed with Kevin DeJong Jan 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/postal/message.clj
View
@@ -97,6 +97,8 @@
(when (:content-type part)
(.setHeader attachment-part "Content-Type" (:content-type part)))
+ (when (:content-id part)
+ (.setContentID attachment-part (str "<" (:content-id part) ">")))
attachment-part)
(doto (javax.mail.internet.MimeBodyPart.)
(.setContent (:content part) (:type part)))))

0 comments on commit 09ed8a0

Please sign in to comment.