diff --git a/AlpacaPBeM/TurnReceiver.cs b/AlpacaPBeM/TurnReceiver.cs index 14c1d72..ea1ebad 100644 --- a/AlpacaPBeM/TurnReceiver.cs +++ b/AlpacaPBeM/TurnReceiver.cs @@ -39,14 +39,6 @@ public void GetTurn(string gameName, string pwd) inbox.Open(FolderAccess.ReadOnly); int count = inbox.Count(); - - for (int i = 0; i < inbox.Count; i++) - { - var message = inbox.GetMessage(i); - Console.WriteLine("Subject: {0}", message.Subject); - } - - bool foundGame = false; for (int i = count-1; i > 0; --i) { diff --git a/AlpacaPBeM/TurnSender.cs b/AlpacaPBeM/TurnSender.cs index 2891c36..738a41f 100644 --- a/AlpacaPBeM/TurnSender.cs +++ b/AlpacaPBeM/TurnSender.cs @@ -65,50 +65,5 @@ public void SendTurn(string gameName, string pwd) Console.WriteLine(ex.ToString()); } } - - //public void SendTurn(string gameName) - //{ - // try - // { - // MailMessage Mail = new MailMessage(); - // SmtpClient Server = new SmtpClient(Settings.Default["UsrSMTPServer"].ToString()); - // Mail.From = new MailAddress(Settings.Default["Email"].ToString()); - // Mail.To.Add(Settings.Default["TurnEmail"].ToString()); - // Mail.Subject = "Turn from AlpacaPBeM"; - // Mail.Body = "Sending turn from AlpacaPBeM!"; - - // string ordersPath = System.IO.Path.Combine(Settings.Default["Savedgames"].ToString(), gameName); - // string []dirFiles = Directory.GetFiles(ordersPath); - // bool fileFound = false; - // foreach (var file in dirFiles) - // { - // if(file.Contains(".2h")) - // { - // Console.WriteLine("Found 2h file " + file); - // Mail.Attachments.Add(new Attachment(file)); - // fileFound = true; - // break; - // } - // } - // if (!fileFound) - // { - // Console.WriteLine("2h file not found!"); - // } - // else - // { - // Server.Port = 587; - // Server.Credentials = new System.Net.NetworkCredential(Settings.Default["Email"].ToString(), Settings.Default["Password"].ToString()); - // Server.EnableSsl = true; - // Server.Send(Mail); - - // Console.WriteLine("Attempting to send mail"); - // } - - // } - // catch (Exception ex) - // { - // Console.WriteLine(ex.ToString()); - // } - //} } }