MAPI.Kit for Delphi -- Example #11: Find messages with restrictions -- source code
==================================================================================

A restriction is MAPI's query: the store evaluates it and returns only the matching rows. This
example searches by text, combines conditions, tests a flag, looks into the recipients of the sent
messages and takes a date range of the calendar -- with short helper functions where they exist and
the restriction classes where they do not.

This archive holds only the files of the example (MAPIKit.Examples\2-Intermediate\11-Restrictions).
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 Restrictions.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-11/
Copyright (C) 1992-2026 IMIBO. All rights reserved. https://imibo.com
