Fixed Imap.SetFlag so that it returns a failed status if the IMAP server response is something other than “OK”.