(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
(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
(mark-read msg)
Set SEEN flag on a message
Set SEEN 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
(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? message)
Checks if this message has been read
Checks if this message has been read
(subject msg)
Fetch the subject of a mail message
Fetch the subject of a mail message
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close