Get AutoArchive settings (as set from Tools|Options|Other|AutoArch

  • Thread starter ron podl
  • Start date Views 2,759
Status
Not open for further replies.
R

ron podl

Is there a way to get the default AutoArchive settings using the Outlook

(2007) object model using VB (VS2008)?

I want to programmatically determine where each outlook folder and

subfolders are being autoarchived to.

With the following:

Dim si As StorageItem = oFolder.GetStorage("IPC.MS.Outlook.AgingProperties",

2) 'olIdentifyByMessageClass)

Dim PA As PropertyAccessor = si.PropertyAccessor

and with this and some other properties and logic

Const PR_AGING_FILE_NAME_AFTER9 = _

"http://schemas.microsoft.com/mapi/proptag/0x6859001E"

dim fname as string = PA.GetProperty(PR_AGING_FILE_NAME_AFTER9)

I can tell if a specific folder is being archived to the default AutoArchive

pst file as set in the Tools|Options|Other|AutoArchive dialog or to a

different pst file for that folder.

But I don't see how to get the filename (or other settings) set in the

Tools|Options|Other|AutoArchive dialog. Is it possible?

thanks

ron
 
K

Ken Slovak - [MVP - Outlook]

Some of the settings are stored in the registry under the

HKCU\Software\Microsoft\Office\12.0\Preferences key (12.0 is Outlook 2007

specific). Other settings are stored on an Outlook profile specific basis,

also in the registry. Look at http://support.microsoft.com/kb/198479.

"ron podl" <ronpodl> wrote in message

news:96D699A2-845C-48D3-9CBA-9B2965AFAC7B@microsoft.com...
> Is there a way to get the default AutoArchive settings using the Outlook
> (2007) object model using VB (VS2008)?

> I want to programmatically determine where each outlook folder and
> subfolders are being autoarchived to.
> With the following:
> Dim si As StorageItem =
> oFolder.GetStorage("IPC.MS.Outlook.AgingProperties",
> 2) 'olIdentifyByMessageClass)
> Dim PA As PropertyAccessor = si.PropertyAccessor
> and with this and some other properties and logic
> Const PR_AGING_FILE_NAME_AFTER9 = _
> "http://schemas.microsoft.com/mapi/proptag/0x6859001E"
> dim fname as string = PA.GetProperty(PR_AGING_FILE_NAME_AFTER9)
> I can tell if a specific folder is being archived to the default
> AutoArchive
> pst file as set in the Tools|Options|Other|AutoArchive dialog or to a
> different pst file for that folder.

> But I don't see how to get the filename (or other settings) set in the
> Tools|Options|Other|AutoArchive dialog. Is it possible?

> thanks
> ron
 
Status
Not open for further replies.
Top