MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 181

Cfml language reference
Table of Contents

Advertisement

Chapter 1: ColdFusion Tags
Usage
To create a ColdFusion date/time object from the date-time string that is extracted
from a mail message in the queryname.date column, use the following table to
determine what to do.
Date-Time Parsing According to Locale
Locale
English (US) locale
Other locales
See also the description of the
For complete usage information on CFPOP, see Developing Web Applications with
ColdFusion.
Example
<!--- This view-only example shows the use of CFPOP --->
<HTML>
<HEAD>
<TITLE>CFPOP Example</TITLE>
</HEAD>
<BODY>
<H3>CFPOP Example</H3>
<P>CFPOP allows you to retrieve and manipulate mail
in a POP3 mailbox.
create one feature of a mail client, allowing you to display
the mail headers in a POP3 mailbox.
<P>Simply uncomment this code and run with a mail-enabled CF Server to
see this feature in action.
<!---
<CFIF IsDefined("form.server ")>
<!--- make sure server, username are not empty --->
<CFIF form.server is not "" and form.username is not "">
<CFPOP SERVER= "#server# " USERNAME=#UserName# PASSWORD=#pwd#
ACTION= "GETHEADERONLY " NAME= "GetHeaders ">
<H3>Message Headers in Your Inbox</H3>
<P>Number of Records:
<CFOUTPUT>#GetHeaders.RecordCount#</CFOUTPUT></P>
<UL>
What to do?
Use the
ParseDateTime
specify the POP attribute, which
converts the date-time value to
Greenwich Meantime.
Extract the date portion of the string
and pass it to the
LSParseDateTime
function, then add or subtract the
conversion time, depending on the
locale.
SetLocale
function.
This view-only example shows how to
function and
157

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 4.5

Table of Contents