问题
Is there a way(Api or anything..pop/imap in python) via which you can get to know the available space on your Gmail account?
回答1:
It appears GMail supports the Quota Extension for IMAP, and at least some information is available that way.
On my account, I get this information:
> a001 GETQUOTA ""
< * QUOTA "" (STORAGE 72600 10601545)
The units are in kilobytes. This means I'm using 72 megs, of a total of 10 gigabytes, which appears to match approximately what gmail.com is saying is the current amount per user.
来源:https://stackoverflow.com/questions/15379142/get-available-space-on-gmail-account-via-api-python