public int ParseALLMessage(string login, string password, string subject, string sender, out string result) { result = ""; try { mail.MailAgent agent = new mail.MailAgent(login, password); result = agent.ParseMessage(subject, sender, new InstagrammVerifyParser()); } catch (Exception) { //... } return(Convert.ToInt32(ExceptionUtils.GetState())); }