Installation guide
DRAFT – boolean flag if this mail message is an unsent draft
FLAGGED – boolean flag if this email has been flagged
RECENT – boolean flag if this email is recent
SEEN – boolean flag if this email has been seen (read)
Internet email addresses are stored as structures with two fields:
NAME – name of the person
EMAIL – email address of the person
The
TO, CC, and BCC fields contain arrays of these structures.
4.5.7.5 Reading a Mail Message
You can read a specific email message by specifying ACTION=”READMAIL”, the folder
name, and the email message ID as returned by the
LISTMAIL action:
<CFIMAP ACTION="READMAIL"
CONNECTION="name"
FOLDER="foldername"
MESSAGEID="messageid"
ATTACHMENTSURI="uritofolder"
NAME="messagename">
This action will retrieve the given message and fill in a structure variable containing
information regarding the retrieved email message. In addition to this, should the
message have any attachments, you specify the URI of the folder you wish the email
attachment to be stored in. Note this is a URI and not a real directory. The fields of the
returned structure are:
SUBJECT – subject of the email
ID – unique ID to this mail
RXDDATE – the date this mail was received
SENTDATE – the date this email was sent
FROM – address structure (see below)
TO – array of Address Structures (see below)
CC – array of Address Structures (see below)
BCC – array of Address Structures (see below)
SIZE – size in bytes of this email
LINES – number of lines of this email
ANSWERED – boolean flag if this email has been answered
DELETED – boolean flag if this email has been deleted
BlueDragon 6.1 CFML Compatibility and Reference Guide 30