The Lua management function 'VPOP3.MarkMessageRead' marks or unmarks a specified message as read.
VPOP3.MarkMessageRead(username, folder, UID, read);