I noticed that the CMD_EMAIL_POP (which I already replaced with cmd_api_pop as it was a dated script) can return a mail usage that's way higher than the users quota. Like 50% more. The controlpanel obviously shows the correct number.
This was an old script but I thought I'd mention it.