My Projects
Search Blog

Categories
Archives
Useful Links
Photo Albums
RSS

Powered by
BlogCFM v1.15

Vivio Technologies VPS Hosting
06 December 2006
ImapCFC Update

CFOpenMail / ImapCFC project page

Every time I made a change to the code in imap.cfc, I had to reinitialize it and log in again.  I had to do this because the init() method stored the connection information in the variables scope of the CFC.. so reloading the CFC would wipe them out.  That got old really fast, so I moved the connection information into the session scope.  Now during development, the CFC can be reloaded on every page call if I want.. but I'll probably just add a "refresh CFC" shortcut into CFOpenMail to ccause that to occur so it only happens when I want it to.

I updated the delete() method to allow the deletion of multiple messages.  I also adjusted the getfolderinfo() and getfolderstructure() methods so they return more information, and don't attempt to get information like message counts and unread message counts on folders that can't actually hold messages.

The copyMessages() method now throws meaningful errors for things like "The destination folder does not exist" and "The destination folder cannot contain messages".

Also, the getMessage() method will throw a meaningful message when you attempt to retrieve an invalid message number.  "The specified message number was not found in the specified folder." instead of what was essentially an "Array index out of bounds" error.

Posted by rickroot at 3:50 PM | Link | 0 comments
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

No comments found.

Post a comment (login required)