示例#1
0
        public void ProcessValidEmail(Chilkat.Email email)
        {
            //Raise event
            var emailEventArgs = new MyEmailEventArgs();

            emailEventArgs.From    = EmailUtility.CleanEmailAddress(email.From);
            emailEventArgs.Subject = email.Subject;
            emailEventArgs.Uidl    = email.Uidl;
            emailEventArgs.Content = email.Body;
            OnFoundEmail(emailEventArgs);



            //int numAttached;
            //bool success;

            //numAttached = email.NumAttachments;
            //if (numAttached > 0)
            //{
            //    success = email.SaveAllAttachments(email.Uidl + "myAttachments");
            //    if (success != true)
            //    {
            //        Console.WriteLine(email.LastErrorText);
            //    }
            //}
        }