예제 #1
0
        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");
            }
        }
예제 #2
0
        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");
            }
        }
예제 #3
0
        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");
            }
        }