> If memory serves, POP has no concept of folders.  

Yes, that is my recollection as well. 

> but I have never tried to access Gmail via IMAP from
> ColdFusion.  I would assume that it would work though.

Neither had I until five minutes ago ;) But I just tried it with cfimap it 
worked fine. 

http://mail.google.com/support/bin/answer.py?hl=en&answer=75725

<form  method="post">
        user <input type="text" name="user" value="myusern...@gmail.com">
        password <input type="password" name="pw">
        folder <input type="text" name="folder" value="SomeFolderName">
        <input type="submit">
</form>         
<cfif structKeyExists(FORM, "pw")>
  <cfimap 
        action="open" 
        server = "imap.gmail.com" 
        username = "#form.user#" 
        secure="yes" 
                port="993" 
                password="#form.pw#" 
                connection="gConnect" >
                
    <cfimap 
        action="GetHeaderOnly" 
                folder="#form.folder#"
        connection="gConnect" 
        name="qMessages"> 

    <cfdump var="#qMessages#"> 
    <cfimap 
        action="close" 
        connection="gConnect"> 
</cfif>         


-Leigh


    

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330458
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to