private void BtnUndoIgnore_Click(object sender, RibbonControlEventArgs e)
        {
            MailItem mailItem = GetCurrentMailItem();

            if (mailItem != null)
            {
                MailMessageManager.UndoIgnoreConversation(mailItem.ConversationID);
            }
        }
        private void BtnTest_Click(object sender, RibbonControlEventArgs e)
        {
            MailItem mailItem = GetCurrentMailItem();

            if (mailItem != null)
            {
                bool shouldIgnore = MailMessageManager.ShouldConversationBeIgnored(mailItem.ConversationID, mailItem.Body);
                MessageBox.Show($"Should ignore = {shouldIgnore}");
            }
        }
        private void CustomRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            // Load special words into the textbox
            var specialWords = MailMessageManager.GetWordsToUndoIgnore();

            if (specialWords != null)
            {
                TxtSpecialWords.Text = string.Join(",", specialWords);
            }
        }
 private void TxtSpecialWords_TextChanged(object sender, RibbonControlEventArgs e)
 {
     MailMessageManager.SetWordsToUndoIgnore(TxtSpecialWords.Text);
 }