User Guide

Table Of Contents
Handling POP mail 985
Handling POP mail
This section describes how to specify the message or messages that you want to get (or get
information about) and provides an example of each of the following uses of POP mail:
Retrieving message headers
Retrieving messages
Retrieving messages and attachments
Deleting messages
Specifying the message or messages
For all
cfpop actions, you can tel the tag to perform the action on all messages, or to do it on
selected messages. To operate on all messages, for example to get all message headers, do not
specify a
messageNumber or UID attribute. To operate on specific messages, for example, to delete
three selected messages, specify a
messageNumber or UID attribute with a comma-delimited list of
messages to act on.
Retrieving message headers
To retrieve message headers without getting the messages, specify
action="GetHeaderOnly" in
the
cfpop tag. Whether you use cfpop to retrieve the header or the entire message, ColdFusion
returns a query object that contains one row for each message in the specified mailbox. you
specify the query object name in the
cfpop tag name attribute. The query has the following fields:
date
from
header (A string with all the mail header fields, including those that have separate fields in the
query object)
messageNumber (The sequential number of the message in the POP server; identical to the
row number of the entry in the query object)
messageID (The mail header Message-ID field)
replyTo
subject
cc
to
UID (The mail header X-UID field)
The
cfpop tag with the getHeaderOnly attribute retrieves any file attachments if you specify an
attachmentPath attribute; otherwise, it does not get the attachments, and the attachmentfiles
column contains empty strings.