IMAPFolderInfoOperation assert

Hi,

When running an IMAPFolderInfoOperation I consistently get the following asset.

MCIMAPSession.cc:813: assert mState == STATE_LOGGEDIN || mState == STATE_SELECTED

Using selectIfNeeded instead of select in IMAPFolderInfoOperation::main() seems to fix this issue. Any thoughts on this?