RDORssFeeds object

 

RDORssFeeds collection represents RSS feeds in Outlook .

 

Returned by:

RDOSession.RssFeeds

 

The example below reads all RSS feeds in Outlook and prints their names and remote paths:

set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
for each RssFeed in Session.RssFeeds
    Debug.Print RssFeed.LocalName & " - " & RssFeed.RemotePath
next

 

The example below adds a new RSS feed:

set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set RssFeed = Session.RssFeeds.Add("http://stackoverflow.com/feeds/tag?tagnames=mapi&sort=hot%23")
RssFeed.Save

 

 

Properties

Methods

 


Derived from: IDispatch


Properties


Count Integer, read-only. Returns the number of RSS feeds in the collection.  

Methods


Add(Url, Resolve)
Adds a new RSS feed from the specified URL and returns a new RDORssFeed object.
RDORssFeed.Save must be called to commit the changes.

Url - string, The Address of the RS feed. Both RSS (1.0 and 2.0) and ATOM feeds are supported.

Resolve - optional, boolean. If true, RSS XML is downloaded and the feed is configured using the values form the remote server.
If not specified, defaults to true.

set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set RssFeed = Session.RssFeeds.Add("http://stackoverflow.com/feeds/tag?tagnames=mapi")
RssFeed.LocalFolder = Session.GetDefaultFolder(olFolderInbox)
RssFeed.Save
Item(Index)
Returns RDORssFeed object corresponding to the specified index (1 through Count).

Index - the integer index (1 through Count) of the RSS feed to return.

 
Remove(Index)
Removes the RSS feed with the specified index (1 through Count).
Save must be called to commit the changes.