MAPI.Kit for Delphi -- Example #21: The free/busy format -- source code
=======================================================================

Exchange publishes the free/busy times of a user as months of busy blocks ([MS-OXOPFFB]): per month
a code (year × 16 + month) and a binary list of blocks, each one the start and end in minutes since
UTC midnight of the first of that month. MAPI.Kit builds and reads that format with plain
functions, and computes the free/busy of a real calendar -- recurring series included.

This archive holds only the files of the example (MAPIKit.Examples\3-Advanced\21-FreeBusyEncoding).
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 FreeBusyEncoding.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/advanced/mapikit-example-21/
Copyright (C) 1992-2026 IMIBO. All rights reserved. https://imibo.com
