RDOStores object collection |
RDOStores collection represents the message stores list in a given profile.
Returned by: RDOSession.Stores
The example below logs to the default MAPI session and prints out the file names of the PST stores and Server Distinguished Names for the Exchange stores
set Session =
CreateObject("Redemption.RDOSession") |
Derived from: IDispatch |
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Properties |
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Count |
integer. Returns the number of stores in the profile |
set Session =
CreateObject("Redemption.RDOSession") |
|||||||||||||||||||||||||||
DefaultStore |
RDOStore, read/write. Returns/sets the default store |
set Session =
CreateObject("Redemption.RDOSession") |
|||||||||||||||||||||||||||
_Item(Index) |
Index - variant: integer or a string. A default object property Retrieves a store with a give index (1 to Count) or a given name Returns RDOStore object |
set Session =
CreateObject("Redemption.RDOSession") |
|||||||||||||||||||||||||||
Methods |
|||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||
Item(Index, OpenFlags) |
Retrieves a store with a give index (1 to Count) or a given name. Index - variant: integer or a string. OpenFlags - (optional). integer; flags to be used to call IMAPISession::OpenMsgStore. By default MAPI_BEST_ACCESS (0x10) is used. This parameter is most useful if you need to bypass the cached mode in Outlook 2003. E.g. passing MDB_ONLINE(0x100) + MAPI_BEST_ACCESS (0x10) will open the store in the best access mode bypassing the cached store. Returns RDOStore object |
||||||||||||||||||||||||||||
AddPSTStore(Path, Format, DisplayName) |
Adds a PST store to the given profile. Returns an RDOStore object. Path - string, path to the PST file. If the file does not exist, a new PST store will be created. Format - integer, optional. The format of the PST file if a new store is to be created. Can be one of the rdoStoreType enums: olStoreDefault (1), olStoreUnicode (2), olStoreANSI (3). DisplayName - string, optional. The display name of the store if one is to be created.
|
set Session = CreateObject("Redemption.RDOSession") 'use the MAPI session from
Outlook Object Model |
|||||||||||||||||||||||||||
AddPstStoreWithPassword (Path, Format, DisplayName, Password, RememberPassword, Encryption) |
Adds a PST store to the given profile and allows to (optionally) pass the value of the password (both for the existing and new PST files) and the encryption level (for new PST files only). Returns an RDOStore object. Path - string, path to the PST file. If the file does not exist, a new PST store will be created. Format - integer, optional. The format of the PST file if a new store is to be created. Can be one of the rdoStoreType enums: olStoreDefault (1), olStoreUnicode (2), olStoreANSI (3). DisplayName - string, optional. The display name of the store if one is to be created. Password - string, optional. The PST file pssword. RememberPassword - boolean, optional. If TRUE, MAPI will remember the password. Encryption - one of the rdoPstEncryption enums, optional. Specifies the encryption level to be used when creating a new PST file. psteCompressableEncryption
(1)
|
|
|||||||||||||||||||||||||||
AddDelegateExchangeMailBoxStore(UserNameOrAddress) |
Adds a delegate Exchange store to the given profile. Returns an RDOStore object. This method provides the same functionality as "Open This Additional Mailboxes" list on the Advanced tab of the Exchange Service Provider options dialog box.
UserNameOrAddress- string, name or address of an Exchnage mailbox, e.g. "Joe User" or "joe@mydomain.com".
Returns RDOStore object.
|
set Session =
CreateObject("Redemption.RDOSession") |
|||||||||||||||||||||||||||
FindExchangePublicFoldersStore |
Returns the Public Folders store
|
|
|||||||||||||||||||||||||||
GetSharedDefaultFolder(NameOrAddressOrObject, FolderType) |
NameOrAddressOrObject - can be a string representing the Exchange mailbox name or address or an RDOAddressEntry or an RDORecipient object. FolderType - integer. The type of the folder. Accepts the same values as Namespace.GetDefaultFolder method in Outlook Object Model (olFolderInbox, olFolderContacts, etc). Returns RDOFolder object. |
set Session =
CreateObject("Redemption.RDOSession") |
|||||||||||||||||||||||||||
GetDefaultFolder(FolderType) |
FolderType - integer. The type of default folder to return. Accepts the same values as Namespace.GetDefaultFolder method in Outlook Object Model (olFolderInbox, olFolderContacts, etc). Returns RDOFolder object. |
set Session =
CreateObject("Redemption.RDOSession") |
|||||||||||||||||||||||||||
GetSharedMailbox(NameOrAddressOrObject) |
Returns RDOStore object representing the given user's mailbox. NameOrAddressOrObject - can be a string representing the Exchange mailbox name or address or an RDOAddressEntry or an RDORecipient object. |
set Session =
CreateObject("Redemption.RDOSession") MsgBox "The address of the mailbox owner: " & Store.Owner.Address
|
|||||||||||||||||||||||||||
GetSharedMailboxEx (NameOrAddressOrObject, EntryIDFlags, OpenStoreFlags)
|
Returns IRDOExchangeStore object representing the given user's mailbox. Similar to GetSharedMailbox, but allows to provide various flags used when creating the store entry id (use Admin privilege etc) and opening the store.
NameOrAddressOrObject - can be a string representing the Exchange mailbox name or address or an RDOAddressEntry or an RDORecipient object.
EntryIDFlags - a combination of rdoCreateStoreEntryIDFlags enums (see below). GetSharedMailbox method uses OPENSTORE_HOME_LOGON | OPENSTORE_TAKE_OWNERSHIP.
OPENSTORE_USE_ADMIN_PRIVILEGE
(0x00000001)
OpenStoreFlags- flags to be used when calling IMAPISession::OpenMsgStore. GetSharedMailbox method uses MDB_NO_DIALOG | MAPI_BEST_ACCESS | MDB_TEMPORARY | MDB_NO_MAIL.
|
|
|||||||||||||||||||||||||||
GetStoreFromID(EntryIDStore, Flags) |
EntryIDStore - string representing the entry id of the store. Flags - (optional). integer flags to be used to call IMAPISession::OpenMsgStore. By default MAPI_BEST_ACCESS (0x10) is used. This parameter is most useful if you need to bypass the cached mode in Outlook 2003. E.g. passing MDB_ONLINE(0x100) + MAPI_BEST_ACCESS (0x10) will open the store in the best access mode bypassing the cached store. Returns RDOStore object.
|
'using RDO along with the Outlook Object Model 'connect to the same MAPI session as the one used by Outlook 'and open the parent store of the given Outlook.MAPIFolder object as 'Redemption.RDOStore set Session =
CreateObject("Redemption.RDOSession") |
|||||||||||||||||||||||||||
UnwrapStore(Store) |
IMAP4 (and some other) stores are wrappers on top of the PST stores.
Accessing messages in such stores can trigger sync with the remote
server. If you want to access only locally available objects in
the store, call UnwrapStore to return the original
store object that does not trigger the sync. Store - RDOStore. The original store to be unwrapped. If the store is not wrapped, the original store object is returned. Returns (unwrapped) RDOStore object. |
|
|||||||||||||||||||||||||||
|