public void MailIgnored(StoredMailMessage message) { log.Info("Ignored mail " + message.filename + message.ReceiversToString()); FileInfo file = new FileInfo(mailFolder.FullName + "\\" + message.filename + ".sending"); if (ignoredMailFolder != null) { file.MoveTo(ignoredMailFolder.FullName + "\\" + message.filename); } else { file.MoveTo(mailFolder.FullName + "\\" + message.filename + ".ignored"); } }
public void MailSent(StoredMailMessage message) { log.Debug("Sent mail " + message.filename + message.ReceiversToString()); FileInfo file = new FileInfo(mailFolder.FullName + "\\" + message.filename + ".sending"); if (sentMailFolder != null) { file.MoveTo(sentMailFolder.FullName + "\\" + message.filename); } else { file.MoveTo(mailFolder.FullName + "\\" + message.filename + ".sent"); } }
public void MailFailed(StoredMailMessage message) { log.Error("Failed sending mail " + message.filename + message.ReceiversToString()); FileInfo file = new FileInfo(mailFolder.FullName + "\\" + message.filename + ".sending"); if (failedMailFolder != null) { file.MoveTo(failedMailFolder.FullName + "\\" + message.filename); } else { file.MoveTo(mailFolder.FullName + "\\" + message.filename + ".failed"); } }