Get available space on Gmail account via API pytho

2019-09-06 16:37发布

问题:

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.



标签: gmail imap pop3