Folder archive settings

  • Thread starter Thread starter JDH
  • Start date Start date
J

JDH

I am trying to set archive settings for new folders that I am creating using
C#. I cannot locate any methods or properties in the
microsoft.office.interop.outlook library. Can anyone point me in the right
the direction.
 
Please always post the version of Outlook you are using and any other
relevant information with your questions.

The folder archive settings are stored in a hidden message in the folder
with a MessageClass of "IPC.MS.Outlook.AgingProperties". If you are using
Outlook 2007 you can use the Folder.GetStorage() method to access the hidden
item as a StorageItem. If you are using an earlier version of Outlook you
will need to use an alternate API such as CDO 1.21 or Extended MAPI (not
supported in managed code and in the case of Extended MAPI only usable from
C++ or Delphi), or a MAPI wrapper such as Redemption
(www.dimastr.com/redemption).

Look at http://www.cdolive.com/cdo10.htm which has the properties used for
archive settings and a link to some CDO code that works with the archive
settings. You'd have to translate that into C# and modify the code to work
with something like Redemption or with Outlook 2007.
 
Hi,

I am trying to script setting the autoarchive setting on specific folders. I have everything working except that new folders I create have no IPC.MS.Outlook.AgingProperties that I can modify. I have used OutlookSpy and under the Associated Contents these folders have nothing associated. If I go in and manually change the archive setting, then IPC.MS.Outlook.AgingProperties is created and I can modify it to turn autoarchiving on and off via a script. I am creating new folders under Outlook 2003 (email server is Exchange 2003).

Why don't these new folders have an IPC.MS.Outlook.AgingProperties message associated with them? Is there a way to create this?

Thanks,
Gordon
 
Back
Top