This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: imaplib.IMAP4.getquotaroot error
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: pierslauder Nosy List: pierslauder, tflorac
Priority: normal Keywords:

Created on 2004-08-09 12:31 by tflorac, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg22024 - (view) Author: Thierry FLORAC (tflorac) Date: 2004-08-09 12:31
I think there is an error in the
imaplib.IMAP4.getquotaroot method available in Python
2.3.3 (as actually available in Debian GNU/Linux).
In line 446 of file "imaplib.py", we can find :

  typ, dat = self._simple_command('GETQUOTA', mailbox)

Instead and according to RFCs, I think we should have :

  typ, dat = self._simple_command('GETQUOTAROOT', mailbox)


Using Netscape Messaging Server , the first version
replies with a "Permission denied" error (while logged
in as a common user) ; the second version works correctly :

  >>> cn.getquotaroot('INBOX')
  ('OK', [['INBOX user/tflorac'], ['user/tflorac
(STORAGE 981 51200)']])


Thanks for your work,

  Thierry
msg22025 - (view) Author: Piers Lauder (pierslauder) * (Python triager) Date: 2004-08-10 00:59
Logged In: YES 
user_id=196212

You are right - it looks as though the getquotaroot code was
copied from the
getquota code above it without being modified properly. Will
fix. Thanks!
msg22026 - (view) Author: Piers Lauder (pierslauder) * (Python triager) Date: 2004-08-10 01:27
Logged In: YES 
user_id=196212

change checked into CVS
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40727
2004-08-09 12:31:53tfloraccreate