Liking cljdoc? Tell your friends :D

clojure-mail.message


add-fieldclj

(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
raw docstring

answered?clj

(answered? message)

Check if the message has an answered flag

Check if the message has an answered flag
raw docstring

bccclj

(bcc m)

Returns a sequence of receivers

Returns a sequence of receivers
raw docstring

ccclj

(cc m)

Returns a sequence of receivers

Returns a sequence of receivers
raw docstring

content-typeclj

(content-type m)

date-receivedclj

(date-received m)

Return the date a message was received

Return the date a message was received
raw docstring

date-sentclj

(date-sent m)

Return the date a mail message was sent

Return the date a mail message was sent
raw docstring

deleted?clj

(deleted? message)

draft?clj

(draft? message)

encodingclj

(encoding m)

flagged?clj

(flagged? message)

flagsclj

(flags m)

fromclj

(from m)

get-contentclj

(get-content m)

has-flag?clj

(has-flag? message flag)

idclj

(id m)

imap-address->mapclj

(imap-address->map address)

in-reply-toclj

(in-reply-to m)

mark-answeredclj

(mark-answered msg)

Set ANSWERED flag on a message

Set ANSWERED flag on a message
raw docstring

mark-as-flaggedclj

(mark-as-flagged msg)

Set DRAFT flag on a message

Set DRAFT flag on a message
raw docstring

mark-deletedclj

(mark-deleted msg)

Set DELETED flag on a message

Set DELETED flag on a message
raw docstring

mark-flaggedclj

(mark-flagged msg)

Set FLAGGED flag on a message

Set FLAGGED flag on a message
raw docstring

mark-readclj

(mark-read msg)

Set SEEN flag on a message

Set SEEN flag on a message
raw docstring

mark-recentclj

(mark-recent msg)

Set RECENT flag on a message

Set RECENT flag on a message
raw docstring

message-bodyclj

(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"}]
raw docstring

message-headersclj

(message-headers msg)

Returns all the headers from a message

Returns all the headers from a message
raw docstring

message-partsclj

(message-parts msg)

mime-typeclj

(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
raw docstring

msg->mapclj

(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
raw docstring

read-messageclj

(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
raw docstring

read-multiclj

(read-multi mime-multi-part)

read?clj

(read? message)

Checks if this message has been read

Checks if this message has been read
raw docstring

recent?clj

(recent? message)

recipientsclj

(recipients msg recipient-type)

senderclj

(sender msg)

Extract the message sender

Extract the message sender
raw docstring

subjectclj

(subject msg)

Fetch the subject of a mail message

Fetch the subject of a mail message
raw docstring

toclj

(to m)

Returns a sequence of receivers

Returns a sequence of receivers
raw docstring

uidclj

(uid message)

return the uid of the message

return the uid of the message
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close