public ProcessInbox(string restEndPoint)
        {
            XmlDocument   xdoc       = getMailConfiguration();
            XmlSerializer serializer = new XmlSerializer(typeof(MailInteraction.ServerProperties));

            smtp = Deserialiser.loadMailConfiguration(xdoc.SelectSingleNode("//mailConfig/smtpProperties/ServerProperties"), serializer);
            pop3 = Deserialiser.loadMailConfiguration(xdoc.SelectSingleNode("//mailConfig/pop3Properties/ServerProperties"), serializer);
            XmlNode credentials = xdoc.SelectSingleNode("//mailConfig/credentials");

            username          = credentials.Attributes["username"].InnerText;
            password          = credentials.Attributes["password"].InnerText;
            mailHelper        = new MailHelper(pop3, smtp, username, password);
            this.restEndPoint = restEndPoint;
        }