Rule: After the msgid flag has been read, messages less than msgid are read messages. Instead of marking as read frequently (every time a message is received), you can mark as read the most recently received message ID at regular intervals (10 seconds).