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

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
 
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.
Similar threads
Thread starter Title Forum Replies Date
E Moving autoarchive settings to new computer (Outlook 2007) Using Outlook 1
K Revert AutoArchive settings via GPO (Run Autoarchive every...) Using Outlook 4
B Update AutoArchive Settings on Multiple PST Files Outlook VBA and Custom Forms 5
Victor_50 Set all subfolders to not autoarchive Outlook VBA and Custom Forms 11
P AutoArchive exchange folder to exchange folder Using Outlook 1
Diane Poremsky Using Outlook's AutoArchive Feature Using Outlook 0
B AutoArchive Nuances Using Outlook 1
K Autoarchive when contradicting company policy Using Outlook 3
E AutoArchive in 2010 not working Using Outlook 2
M Can't change autoarchive property in Deleted Items folder BCM (Business Contact Manager) 1
O How to find out the domain and server settings that my Outlook is using? Using Outlook 2
M Use Macro to change account settings Outlook VBA and Custom Forms 0
R Roadrunner Email Settings | Contact Roadrunner Customer Support Outlook VBA and Custom Forms 0
HarvMan Outlook 365 loses "outlook.com" exchange server settings Using Outlook 1
L Recommendations for Utility to Backup Outlook 365 Account Settings Using Outlook 2
M Outlook settings will not accept a password Using Outlook 9
A Change settings Send/receive VBA Outlook VBA and Custom Forms 0
D Anyone tell me where custom view settings are stored? Outlook VBA and Custom Forms 9
M Issue transferring Outlook 2016 email accounts & settings onto new computer Using Outlook 8
G Personal Settings within Outlook Using Outlook 2
David Langer Store my Outlook settings in the cloud - Broken Using Outlook 4
M Outlook 2016 Free/Busy settings ignored Using Outlook 0
P OWA Settings->Calendar->Events from Email; Setting changes do not hold Using Outlook 1
S Reboot of frozen windows7 results in changed outlook 2007 settings Using Outlook 1
O How to apply view settings on all accounts and folders Using Outlook 7
D.Moore Folder view settings by VBA macro Outlook VBA and Custom Forms 57
JohnViuf Export task list view settings to other pc Outlook VBA and Custom Forms 16
T Migrating Profile/Account Settings To New PC for Outlook 2016 Using Outlook 2
O Backup Office settings - registry key Using Outlook 5
J Outlook 2016 - Tasks View Settings Missing Using Outlook 1
S Views ans Where Settings AreSavd Using Outlook 4
J Control Panel Mail (settings) icon missing Using Outlook 2
GregS "Your <mail provider> settings are out of date" Using Outlook 0
R Outlook 2010 - Reading Pane and To Do Bar Settings Not Saved on Exit Using Outlook 2
O Outlook 2003 can't send, but settings seem OK Using Outlook 1
Commander1 Task Recurrence Settings Using Outlook 3
M Change default "automatically test account settings when Next is clicked" Using Outlook 1
F Missing "More Settings" in Outlook 2007 Professional Using Outlook 8
A Help creating macro for conditional formatting settings Using Outlook 8
L changing view settings based on message body Using Outlook 1
B Email address not showing up in account settings Using Outlook 3
B Outlook 2007 Save Current View,Font,Toolbar Settings Using Outlook 6
T save custom user settings/ views BCM (Business Contact Manager) 2
S Oulook view settings ( NO PST) Using Outlook 0
wallisellener BCM - restore default settings BCM (Business Contact Manager) 36
T Settings question Using Outlook 6
O Outlook 2013 not holding bottom navigation settings Using Outlook 10
H PRF with OverwriteProfile=Append Is overwriting other settings Using Outlook 2
I Reconfigure standard Outlook settings on all machines Using Outlook 0
E "Current View" settings across multiple users on same Exchange 2007 account. Using Outlook 1

Similar threads

Back
Top