Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 150599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:18:58+00:00 2026-05-11T09:18:58+00:00

I want to write a simple Outlook 2007 AddIn that allows me to manually

  • 0

I want to write a simple Outlook 2007 AddIn that allows me to manually Auto-Archive mails. That is, I right-click a mail, select Auto-Archive and it gets moved into my Archive folder.

Unfortunately, I do not seem to be able to detect which one is the Archive Storage. I know that Application.GetNamespace(‘MAPI’).Stores is a list of all my stores, and this includes my Archive Store. But I do not seem to find a way to detect if a store is the Archive Store or not.

Before you recommend simple string matching against store.DisplayName keep in mind localization (in German, the Store is ‘Archivordner’, which is obviously different from the english one).

I was thinking that it could be possible to access the Auto Archive setting to get the Filename and then match against store.FilePath, but I am unable to find this setting anywhere.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:18:59+00:00Added an answer on May 11, 2026 at 9:18 am

    Okay, found it. The Secret is IPC.MS.Outlook.AgingProperties and it’s a bit weird and undocumented, but it’s good enough for me.

        private bool GetArchiveFilename(MAPIFolder fld, out string archiveFileName)     {         bool result = false;         archiveFileName = string.Empty;         if (fld != null)         {             StorageItem si = fld.GetStorage('IPC.MS.Outlook.AgingProperties', OlStorageIdentifierType.olIdentifyByMessageClass);              try             {                 archiveFileName = si.PropertyAccessor.GetProperty('http://schemas.microsoft.com/mapi/proptag/0x6859001E').ToString();                 result = true;             }             catch (COMException)             {                 return GetArchiveFilename(fld.Parent as MAPIFolder, out archiveFileName);             }         }         return result;     } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a simple class (PHP5) that can 'run' an unknown amount
I want to write a simple SMPP Server that basically forwards traffic to another
I want to write a simple python script that send a EML file exported
I want to write a simple program that detect USB Wifi plugged computer and
I want to write a simple server application that will take commands from a
I want to write a simple program, that writes console input to file with
I want to write a simple bash script that will act as a wrapper
I want to write a simple annotation like @interface MyClassAnnotation and @interface MyMethodAnnotation that
I want to write a simple condition that states if a AND b are
I just want to write a very simple C++ program for Windows only that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.