Example: mapi_read_next_mail_ex
In the following example, the mapi_read_next_mail_ex peeks at a sticky note message.
// Reset mail to beginning of mailbox mapi_set_property_sz_ex(&mapi,"Message ID", ""); do { // Peek at next mail (don't mark it as read) rc = mapi_read_next_mail_ex(&mapi,"NextMail", "Show=all", "Peek=True", ] "Type=IPM.Note", LAST ); } while (rc == LR_PASS);