start="c=US">
<!--- Output query record set --->
<cfoutput query="OrgList">
DN: #dn# <br>
O: #o# <br>
TELEPHONENUMBER: #telephonenumber# <br>
MAIL: #mail# <br>
=============================<br>
</cfoutput>
<!--- Index the record set --->
<cfindex action="update"
collection="ldap_query"
key="dn"
type="custom"
title="o"
query="OrgList"
body="telephonenumber">
<!--- Search the collection --->
<!--- Use the wildcard * to contain the search string --->
<cfsearch collection="ldap_query"
name="s_ldap"
criteria="*617*">
<!--- Output returned records --->
<cfoutput query="s_ldap">
#Key#, #Title#, #Body# <br>
</cfoutput>
Indexing cfpop query results
The contents of mail servers are generally volatile; specifically, the message number is reset as
messages are added and deleted. To avoid mismatches between the unique message number
identifiers on the server and in the Verity collection, you must re-index the collection before
processing a search.
As with the other query types, you must provide a unique value for the
data fields to index in the
The following example updates the pop_query collection with the current mail for user1, and
searches and returns the message number and subject line for all messages containing the word
action:
<!--- Run POP query --->
<cfpop action="getall"
name="p_messages"
server="mail.company.com"
userName="user1"
password="user1">
<!--- Output POP query record set --->
<cfoutput query="p_messages">
#messagenumber# <br>
#from# <br>
#to# <br>
#subject# <br>
#body# <br>
<hr>
attribute.
body
attribute and enter the
key
Working with record sets
531
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers