Ok guys, hopefully someone has messed around with the API enough that they
can answer a question...
I am experimenting with the ImailAPI using Imail v8 evaluation version and
Cold Fusion's cf_object as the COM client (works similiar to ASP with
regards to COM objects).
The Item() method for the domain collection accepts a domainName string.
The Item() method for the user collection takes a userName string.
What does the Item() method for the message collection accept? I have
tried message indexes (both 1 and 0 based) and UIDL values... nothing works.
Any suggestions?
Here is some example code (I would happily accept and ASP example that
shows this working too:) :
<cfobject action="create"
name="imail"
class="IMailAPI.IMailServer.1">
<cfset c = imail.connect(Server,Userid,Password)>
<cfset domains = imail.domains>
<cfset d = domains.item(domain)>
<cfset users = d.users>
<cfset u = users.item(userid)>
<cfloop collection="#u.mailboxes#" item="m">
#m.name#
<ul>
<li>#m.size#</li>
<li>#m.lastaccess#</li>
<cfset msg = m.messages>
<li>#msg.count# total</li>
<li>#msg.unreadcount# unread</li>
<!--- THIS IS WHERE IT BOMBS --->
<cfset thisMsg = msg.Item(MsgIndex)>
</ul>
</cfloop>
TIA,
Chris
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/