How do I Programmatically remove a Digital Signature from an Outlook Mail Item or Surpress the dialog when altering a signed message?

Posted on 2008-11-13
Last Modified: 2013-11-10
I've created a small add-in for Outlook 2007 that removes the attachments and inserts a link to the removed files.  Everything works, however when modifying a message with a digital certificate the user will be prompted with a warning that saving the message will remove the certificate (which it should be since it's been modified).

I want to suppress the dialog or remove the digital signature before saving the modified messages.  Messages without the signatures save with no issues.

There is an office. Signature names space available but it doesn't appear to be applicable to outlook mail items.
Question by:J-Techie
    LVL 31

    Expert Comment

    Seems to me that the way to go about that would be to export/save it as a .msg file so the digital signature would remain intact and just link to the whole message, or to make an exception to let signed emails through.  Sorry, not my area to say how exactly to go about doing this, but maybe this might get you started down the right path or pop an idea into the head of another expert to carry forward with this idea.

    Author Comment

    Your suggestion wont actually work as is, but I will try and see if copying the message and deleting the original will remove the Signature.  If that works, youll get the points.

    Author Comment

    Copying the message doesn't work.

    I attempted to modify the message then copy it, but you get the same warning regarding the Digital ID.  Nearly everyone I deal with has a Digital ID, so it is a bit of a annoyance.  

    There has to be some way to strip the digital id from the message.

    Accepted Solution

    I found the namespace

    SignedCMS allows the management of encryption and signing with x509 certificates.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now