Reply does'nt recognize a signature as an attachment

D

DavidE

Hi,

I created an outlook add-in that create a bar button.When I click this
button the code checkes for attachments. Some users have a signature on their
mails as a gif or bmp . When I get such a mail and I open it and click the
button I created the code recognize the signature as an attachment and it's
good for our security needs.Also when I use the forward action. The problem
is whith the Reply action . When I use Reply and then click the button the
code does'nt recognize the signature as an attachment and it cause security
problem in our company so users can't reply mails with signatures and they
get a security error.
What can I do to recognize signature as attachment in reply action ?

Thanks,
David
 
K

Ken Slovak - [MVP - Outlook]

You need to search the Attachments collection and evaluate each attachment
to see if it's an embedded attachment or a "true" file attachment.

Not all embedded attachments like signatures show the olEmbedded value for
the Type property. In most cases to get a true evaluation of how the
attachment is attached you have to evaluate some MAPI properties such as
PR_ATTACH_CONTENT_ID (which is never there if the attachment is not
embedded). To do so you must use either Outlook 2007 and its
PropertyAccessor object or a lower level API such as CDO 1.21 (not for .NET
code and optional installation), Extended MAPI (C++ or Delphi only and also
not for .NET code) or a MAPI wrapper such as Redemption which is .NET safe
(www.dimastr.com/redemption).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top