The Lua management function 'VPOP3.GetMessages' retrieves a table containing all the mail messages in a specified folder.
VPOP3.GetFolders(username, folder);
It returns a table where the key is the message UID and the value is a table of: