Understanding IMAP and IMAPS Protocol Behavior