I use the script in the link, it works okay. But I think it would be even better if you used it like opening a real mailbox.
Example:
Get mail & attachments for x amount of mails (x amount is the amount of mails per page ingame) as fast as possible, no delay.
Sleep 2 seconds, repeat.