Hello, first of all I must say, what a great script!
I just have 2 feature requests:
1. Have the script "Self Learn" spam as time goes on. Based on the keywords of the messages in the Spam folder, the script will automatically move suspected spam to the proper folder. Also a feature to define word filters for spam. IE, if the message contains "Viagra", "Credit", etc, move to Spam.
2. Automatically update/refresh the message list when a message is received.