When you are ready to begin reading messages that have arrived on your system, you can use MAPI to poll your inbox and return messages to your application. In the code samples in this section, we're assuming that you've logged in and have established a valid MAPI session, as outlined earlier.