Checking for enclosures in outlook 2007

J

John Hunter

I have created an addin that monitors the rss folders in outlook 2007 I want
to find out whether a rss postitem has an enclosure but there doesn't seem to
be anying in the object model for this.

I'm using Visual Studio 2008 Beta 2 VSTO
 
K

Ken Slovak - [MVP - Outlook]

Do you mean an attachment? If so get the RSS item as an Outlook item, it
will be a Post item. Then access the Attachments collection.
 
J

John Hunter

The attachments collection only contains something if the attachment has
already been downloaded. I also need to know when there is an enclosure
available but not downloaded yet, in this scenario the attachments collection
is empty.
 
K

Ken Slovak - [MVP - Outlook]

Other than some sort of telnet type logon to the server and checking that
way I can't think of a way to do that, certainly not using the Outlook
object model.
 
J

John Hunter

I'm not using a server in this scenario outlook is downloading the feeds
directly.

I thought another approach may be to trap the event when the enclosure is
downloaded so I attached to the BeforeAttachment... events but none of them
fired when I ran the code. (I checked my code by attaching to the open event
with worked ok).

I am at a loss as to where to look now. I am finding the support for RSS in
outlook really poor, enclosures are downloaded using a modal dialog which is
no good when the attachment is more than a few Mbs big. Additionally I
cannot get outlook to synchronize properly with the windows common feed.
 
K

Ken Slovak - [MVP - Outlook]

Outlook synchronization with the Windows common feed causes real problems
with Outlook from a user perspective, it's a major reason for Outlook 2007
slowing down to a crawl.

The support for RSS is what you see. There's nothing that would seem to do
what you want.
 
J

John Hunter

Thanks for the response.

How about a bit of a twist, Outlook itself can obviously work out whether
there is an enclosure both in the article and in the context menu.

Would I be able to open the item and use the Form to work out the enclosure
details?

I haven't looked at the Form related stuff yet as everything I have done to
date has not needed any ui (other than a menu item).
 
K

Ken Slovak - [MVP - Outlook]

I don't know, try it. I haven't done any sort of real work with RSS forms,
although they are just Post forms.
 

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