(add-field msg m k f)add the result of (f msg) to a map m, if there is an Exception, add the Exception to the :error field of the map
add the result of (f msg) to a map m, if there is an Exception, add the Exception to the :error field of the map
(answered? message)Check if the message has an answered flag
Check if the message has an answered flag
(content-type m)(date-received m)Return the date a message was received
Return the date a message was received
(date-sent m)Return the date a mail message was sent
Return the date a mail message was sent
(deleted? message)(draft? message)(encoding m)(flagged? message)(flags m)(from m)(get-content m)(has-flag? message flag)(id m)(imap-address->map address)(in-reply-to m)(mark-answered msg)Set ANSWERED flag on a message
Set ANSWERED flag on a message
(mark-as-flagged msg)Set DRAFT flag on a message
Set DRAFT flag on a message
(mark-deleted msg)Set DELETED flag on a message
Set DELETED flag on a message
(mark-flagged msg)Set FLAGGED flag on a message
Set FLAGGED flag on a message
(mark-recent msg)Set RECENT flag on a message
Set RECENT flag on a message
(message-body msg)Read all the body content from a message If the message is multipart then a vector is returned containing each message [{:content-type "TEXT\PLAIN" :body "Foo"} {:content-type "TEXT\HTML" :body "Bar"}]
Read all the body content from a message
If the message is multipart then a vector is
returned containing each message
[{:content-type "TEXT\PLAIN" :body "Foo"}
{:content-type "TEXT\HTML" :body "Bar"}](message-headers msg)Returns all the headers from a message
Returns all the headers from a message
(message-parts msg)(mime-type type)Determine the function to call to get the body text of a message
Determine the function to call to get the body text of a message
(msg->map msg)Convert a mail message body into a Clojure map with content type and message contents
Convert a mail message body into a Clojure map with content type and message contents
(read-message msg & {:keys [fields]})Returns a workable map of the message content. This is the ultimate goal in extracting a message as a clojure map. Any errors that occured while fetching the fields are added to the :errors field of the map. Options: fields - a list of the available fields you want to return, defaults to all fields
Returns a workable map of the message content. This is the ultimate goal in extracting a message as a clojure map. Any errors that occured while fetching the fields are added to the :errors field of the map. Options: fields - a list of the available fields you want to return, defaults to all fields
(read-multi mime-multi-part)(read? message)Checks if this message has been read
Checks if this message has been read
(recent? message)(recipients msg recipient-type)(subject msg)Fetch the subject of a mail message
Fetch the subject of a mail message
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |