Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1005 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 1005 Bytes

Imap

A minimalist and partial IMAP client in native Clojure.

  • Does not rely on javax.mail
  • Supports Gmail IMAP extensions (X-GM-RAW search, X-GM-THRID thread IDs, X-GM-MSGID message IDs)
  • Supports fetching messages without their attachments

Alternatives:

  • Clojure-mail is a nice library but it uses javax.mail. As a consequence it does not support Gmail extensions (extended search, threads...) and (to my knowledge) does not support fetching messages without their attachments.
  • gmail-clj is a wrapper for the new Gmail API (not IMAP). So obviously it only works with Gmail.

Dependency

[minimap "0.1.0-SNAPSHOT"]

Usage

(:require [minimap.core :as minimap])

(def session (minimap/login :gmail "email@gmail.com" "password"))

(minimap/search session {:gmail "in:mylabel mysearchquery"})

License

Distributed under the Eclipse Public License, the same as Clojure.