Fixed loop.
Removed extra retains.
Simplified MCOIMAPSession.mm integration with C++.