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
sourceraw docstring

answered?clj

(answered? message)

Check if the message has an answered flag

Check if the message has an answered flag
sourceraw docstring

bccclj

(bcc m)

Returns a sequence of receivers

Returns a sequence of receivers
sourceraw docstring

ccclj

(cc m)

Returns a sequence of receivers

Returns a sequence of receivers
sourceraw docstring

content-typeclj

(content-type m)
source

date-receivedclj

(date-received m)

Return the date a message was received

Return the date a message was received
sourceraw docstring

date-sentclj

(date-sent m)

Return the date a mail message was sent

Return the date a mail message was sent
sourceraw docstring

encodingclj

(encoding m)
source

flagsclj

(flags m)
source

fromclj

(from m)
source

get-contentclj

(get-content m)
source

has-flag?clj

(has-flag? message flag)
source

idclj

(id m)
source

imap-address->mapclj

(imap-address->map address)
source

in-reply-toclj

(in-reply-to m)
source

mark-readclj

(mark-read msg)

Set SEEN flag on a message

Set SEEN flag on a message
sourceraw 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"}]
sourceraw docstring

message-headersclj

(message-headers msg)

Returns all the headers from a message

Returns all the headers from a message
sourceraw docstring

message-partsclj

(message-parts msg)
source

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
sourceraw 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
sourceraw 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
sourceraw docstring

read-multiclj

(read-multi mime-multi-part)
source

read?clj

(read? message)

Checks if this message has been read

Checks if this message has been read
sourceraw docstring

recent?clj

(recent? message)
source

recipientsclj

(recipients msg recipient-type)
source

senderclj

(sender msg)

Extract the message sender

Extract the message sender
sourceraw docstring

subjectclj

(subject msg)

Fetch the subject of a mail message

Fetch the subject of a mail message
sourceraw docstring

toclj

(to m)

Returns a sequence of receivers

Returns a sequence of receivers
sourceraw docstring

uidclj

(uid message)

return the uid of the message

return the uid of the message
sourceraw docstring

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

× close