Get available space on Gmail account via API pytho

2019-09-06 16:03发布

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?

标签: gmail imap pop3
1条回答
叼着烟拽天下
2楼-- · 2019-09-06 16:35

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.

查看更多
登录 后发表回答