Added error checking.
* Made pError a pointer to ErrorCode.
WIP: Objective-C bridge of IMAP rendering methods.