Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to troubleshoot a frustrating inbox quota issue. Thunderbird says my inbox is 80% full. My ISP says it isn't. We made some tweaks and I should have 2G available (it had been "unlimited"). Thunderbird, unfortunately, still reports that I'm using 206456 of my 256000 KB limit on Quota Root "ROOT."

Is there a command line method I can use to find out what my mail host is telling Thunderbird? Can Mutt tell me?

share|improve this question
Sniffing around here: – Amanda May 3 '11 at 13:52
You have 2G of space, but the root storage is limited to 256M? I saw the same error and tried to reduce my inbox which didn't help. However, when I created another folder under Archive and moved most of my mail from the default archive folder to the new folder, it resolved the problem (though I had to take down thunderbird and restart to force thunderbird to re-check the quota. – user79255 Jul 25 '12 at 17:54
up vote 6 down vote accepted

Perhaps the Python imaplib library could help. Launch a python console from the terminal with python. Then, create an IMAP connection with the following commands:

>>> import imaplib
>>> conn = imaplib.IMAP4('hostname')
>>> conn.login('username', 'password')

If your IMAP server uses SSL, use the IMAP4_SSL constructor instead of IMAP4. You can then use the getquotaroot or getquota methods on the connection. For example:

>>> conn.getquotaroot('INBOX')
>>> conn.getquota('quota root') # using the root from the previous command
share|improve this answer
Bingo. ('OK', [['"INBOX" "ROOT"'], ['"ROOT" (STORAGE 206431 256000)']]) ... so Thunderbird is not wrong. – Amanda May 3 '11 at 15:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.