MAPI.Kit for Delphi -- Example #14: Color categories: the master list and the categories of an item -- source code
==================================================================================================================

Outlook keeps its color categories in a master list stored in the Calendar folder; an item carries
only the names of its categories. This example reads the master list, adds two categories with a
color and a shortcut key, and assigns categories to an item.

This archive holds only the files of the example (MAPIKit.Examples\2-Intermediate\14-Categories).
The MAPI.Kit library, the shared units of the examples (MAPIKit.Examples\Common) and TestData come
with the MAPI.Kit DCU edition for your Delphi version, a free download:
https://imibo.com/mapi-kit/#dcu

Extract this archive into the folder that holds MAPIKit.Examples of the DCU edition (the paths in
the archive start with MAPIKit.Examples\), then open Categories.dproj.

Delphi: Delphi 10.3 Rio .. Delphi 13 Florence (Win32 and Win64).
The programs are written to .\OUT\<platform>\<config>.

Test data: without a .pst file or a MAPI profile the program works on a copy of the examples' test
store, a small .pst file with sample mail, appointments, contacts, tasks and notes. When the test
store does not exist yet, it is created automatically the first time (it takes a few seconds): in
TestData\TestStore.pst of the MAPIKit.Examples folder, or in %TEMP%\MAPIKit.Examples\TestData when
the program runs on its own. Each run works on a fresh copy in %TEMP%\MAPIKit.Examples, so the test
store itself is never changed.

Description and source code excerpts: https://imibo.com/mapi-kit-examples/intermediate/mapikit-example-14/
Copyright (C) 1992-2026 IMIBO. All rights reserved. https://imibo.com
