Skip to content

Commit

Permalink
explicitly open/close folder when appending messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nakkaya committed Aug 18, 2012
1 parent 0172d68 commit f1c2d23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/inbox_feed/core.clj
Expand Up @@ -75,7 +75,9 @@

(defn append-messages [folder messages]
(when (not (empty? messages))
(.appendMessages folder (into-array messages)))))
(.open folder javax.mail.Folder/READ_WRITE)
(.appendMessages folder (into-array messages))
(.close folder false))))

(defn schedule-work
([f rate]
Expand Down

0 comments on commit f1c2d23

Please sign in to comment.