/// <summary>
 /// Mark an email message as processed by tagging it with a special label
 /// </summary>
 public static void MarkMessage(IMailFolder folder, UniqueId msgId, bool success)
 {
     folder.AddLabels(msgId, new string[] {
         success?successLabel: failureLabel
     }, true);
 }