check IMAP session before fetching notification email