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

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.
J-TechieAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ParanormasticCryptographic EngineerCommented:
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.
0
J-TechieAuthor Commented:
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.
0
J-TechieAuthor Commented:
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.
0
J-TechieAuthor Commented:
I found the namespace
System.Security.Cryptography.Pkcs

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.