Incorporated changes for pop3 and quotas. Thanks to Aleksander Podsiadly