Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / July 2004

Tip: Looking for answers? Try searching our database.

Processing digitally signed attachments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rustem - 14 Jul 2004 16:27 GMT
Hi guys,

I have problem with processing (retrieving basic properties like "TO",
"SUBJECT", "BODY") digitally signed attachments. I have tried it for
few weeks but all unsuccessfully. Here are the details:

I am working on program that retrieves useful data from pst files. I
am getting pop-ups when processing email attachments with digital
signatures, in other words emails with digital signatures attached to
other emails. I am getting the following pop-ups:
"Microsoft Office Outlook could not sign or encrypt this message
because you have no certificates which can be used to send from the
email address ..."
First of all, I am not trying to send anything – all I do is:

Outlook::_MailItem*    pMailItem = NULL;
CComPtr<Outlook::MAPIFolder> pmfDrafts;
CComBSTR ccbstrFilePath("c:\TestOutlook\test.msg");

hr = pAttachment->SaveAsFile(ccbstrFilePath);
hr = pOutlook->CreateItemFromTemplate(ccbstrFilePath, (_variant_t)
pmfDrafts, &pDispatch);
hr = pDispatch->QueryInterface(__uuidof(Outlook::_MailItem),
(void**)&pMailItem);

hr = pMailItem->Save();
ProcessMailItemAttachment(pMailItem);
hr = pMailItem->Delete();

pMailItem->Save() is the call that causes the pop-up. I don't have the
right certificate for these email attachments, but I can manually
click "OK" and program successfully processes that item and jumps to
the next one. The automation becomes then manual!

I have tried to reset PR_MESSAGE_CLASS, but it didn't work (my guess
due to the permissions). I have also tried redemption and also
unsuccessful – all comes down to pMailItem->Save() call. I can't
retrieve any properties of pMailItem before I call Save().

I have run out of ideas, so any suggestions or ideas will be more than
welcome.

Best regards,
Rustem
Pervov Paul - 17 Jul 2004 09:46 GMT
I suggest you using CDO to traverse Messages collections and retrieve
attachments not OOM. Of course you have to start Outlook first and retrieve
EntryID of the folder you want to look through.

Best regards, Paul.

> Hi guys,
>
[quoted text clipped - 40 lines]
> Best regards,
> Rustem
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.