added checkIMAPSession example that results in crash