RDODeletedItems object collection

 

RDODeletedItems collection represents the deleted (but recoverable) messages from a given RDOFolder object. Exchange only in the online mode.

This collection is derived form the RDOItems collection and implements all of its properties and methods.

It overrides the behavior of the Add method (an error will be raised) and adds the Restore method (see below).

Returned by: RDOFolder.DeletedItems

 

The example below logs to the default MAPI session and restores all deleted items in the Inbox:

set Session = CreateObject("Redemption.RDOSession")
Session.Logon
set Folder = Session.GetDefaultFolder(olFolderInbox)
for i = Folder.DeletedItems.Count to 1 step -1

  set Msg = Folder.DeletedItems.Restore(i)

  Debug.Print "restored " & Msg.Subject

next


Derived from: RDOItems

Implements all RDOItems properties and methods: Count, RawTable, Session, _Item(), MAPITable, Add, GetFirst, GetLast, GetNext, GetPrevious, Item(), Remove

 

Methods


Restore(Index)

Index - variant: integer or a string.

Restores a message with a given index (1 to Count) or a given subject

Returns RDOMail object

see example above