Permalink
Browse files

the real culprit!

  • Loading branch information...
dlowe committed Oct 16, 2012
1 parent 2dd1918 commit 389162cafab08224e50bd6721cac93fe14ca3257
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/postal/support.clj
  2. +1 −1 test/postal/test/message.clj
View
@@ -53,7 +53,7 @@
rs (String. (Base64/encodeBase64 bs))
onlychars (apply str (re-seq #"[0-9A-Za-z]" rs))
epoch (.getTime (java.util.Date.))]
- (format "%s.%s@%s" onlychars epoch host))))
+ (format "<%s.%s@%s>" onlychars epoch host))))
(defn pom-version []
(let [pom "META-INF/maven/com.draines/postal/pom.properties"
@@ -152,7 +152,7 @@
:to "baz@bar.dom"
:subject "Test"
:body "Where is that message ID!"})]
- (is (re-find #"Message-ID:.*?@postal\." m)))
+ (is (re-find #"Message-ID: <.*?@postal\..*>" m)))
(let [m (message->str
{:from "foo@bar.dom"
:to "baz@bar.dom"

0 comments on commit 389162c

Please sign in to comment.