First of all, if you're using the old ImapX library, I invite you to upgrade to ImapX 2. It's being constantly developed and supported. There is also sample code for all common operations.
The Process method of a message doesn't mark the message as read, it only downloads the whole message including attachments. In your case, if you call the Search method setting the second parameter to true, you don't have to call it for every single message.
To mark a message as read simply use the AddFlag method of Message:
First of all, if you're using the old ImapX library, I invite you to upgrade to ImapX 2. It's being constantly developed and supported. There is also sample code for all common operations.
The
Processmethod of a message doesn't mark the message as read, it only downloads the whole message including attachments. In your case, if you call theSearchmethod setting the second parameter totrue, you don't have to call it for every single message.To mark a message as read simply use the
AddFlagmethod of Message: