Unit uNotifierMAPI

Classes

TMailNotifier -
TNewMailAdviseSink - guid generated by PFS

Functions

Types

Constants

CLSID_NewMailAdviseSink

Variables


Functions


Types


Constants

CLSID_NewMailAdviseSink = '{C1D20C80-C74E-11D1-AFE4-00C0F01BD29B}'

An example using extended MAPI to register for new mail notification. Although working - this code need work. Note that un-registering for notification is not implemented yet (ever?) - but it should be fairly straightforward - just use UnAdvise... // Based on an example in the Microsoft KB. // This code requires Delphi 3 - for the COM stuff. I have added several http references in the comments to the relevant SDK documentation on the Microsoft MSDN site. Remember that you must register on the MSDN site before these links will work (I think). Thanks to Alex Staubo for nice conversion of MAPI headers. Don't go to the message store without them. // version 1.1 - corrects error that prevented folder enumeration from working.

Variables