Пример #1
0
 private void AddToBounce(MessageInfo mail)
 {
     try
     {
         MailWH.BounceAdd(mail);
         Functions.ProcessedCounters[MailboxType.Bounce].Increment();
         Functions.Log.Debug("Send Bounce to MailWH");
     }
     catch (Exception ex)
     {
         Functions.Log.Error("Error saving Bounce message '{0}' to MailWH: {1}", mail.Mail.Headers.MessageId, ex.Message);
         Functions.ErrorsCounters[MailboxType.Bounce].Increment();
     }
 }
Пример #2
0
 private void AddToFbl(MessageInfo mail)
 {
     try
     {
         // TODO: Add FBL additional headers support
         MailWH.FBLAdd(mail);
         Functions.ProcessedCounters[MailboxType.Fbl].Increment();
         Functions.Log.Debug("Send FBL to MailWH");
     }
     catch (Exception ex)
     {
         Functions.Log.Error("Error saving FBL message '{0}' to MailWH: {1}", mail.Mail.Headers.MessageId, ex.Message);
         Functions.ErrorsCounters[MailboxType.Fbl].Increment();
     }
 }