Updating the Message Store

If your application changes any of the members of MailMsg, for example, setting the MAIL_STATUS_READ flag, the message store is not affected until the message is reinserted. You must call the MailUpdate function to make the modifications permanent in the message store.