The Messaging Architecture defines a framework in which modules (MTMs) can be implemented that provide support for particular messaging protocols. A client MTM provides the API for application engines to use the protocol. The POP3 MTM API provides the client MTM API, plus supporting classes, for POP3.
The API has four key concepts: POP3 Client MTM, get mail helper, POP3 email settings, and email message entry information.
The POP3 Client MTM provides MTM-specific operations for connection and mail retrieval. Some generic messaging operations, such as creating and sending messages, are not appropriate for POP3, and are not supported by the MTM.
The POP3 Client MTM class is CPop3ClientMtm
.
The POP3-specific operations are defined in
TPop3Cmds
.
This encapsulates all the operations required to connect and
retrieve mail. Options are available for moving or copying mail, and for
getting all mail or selected mail. The get mail helper is provided by
CImPop3GetMail
.
The settings define email server and user log-on details. It is
provided by CImPop3Settings
.
Protocol-specific data for a message is stored in fields in its
index entry. A class TMsvEmailEntry
is provided to read
these fields for e-mail protocols (including POP3).