RDOMail.Save() change not being shown [Redemption] RRS feed

  • Question

  • Hi, 

    We're using Outlook Redemption to make a change to an RDOMail item on ItemAdd. The event is firing and the change to the mail item is occurring, but it is not always reflected in the Outlook UI. On restart all changes are shown correctly. The first change we tried to make was to the MailItem's attachment names. This is the content of the ItemAdd event:

            private void OnItemAdd(object item)
                var mail = item as RDOMail;

                // check to see if mailItem passes some criteria removed

                var attachment = mail.Attachments[1];
                var fileName = string.Format("{0} {1:ddMMyyyy HHmmss}.pdf", session.CurrentUser.Name, DateTime.Now);
                attachment.FileName = fileName;
                attachment.DisplayName = fileName;

    This works intermittently so we tried something simpler, just adding a category to the mailitem via mail.Categories = "test", followed by mail.Save(), but we had the same problem. Any suggestions on where we could be going wrong?



    Monday, November 25, 2013 9:00 AM