diff options
author | Piers Lauder <piers@cs.su.oz.au> | 2004-08-10 01:24:54 (GMT) |
---|---|---|
committer | Piers Lauder <piers@cs.su.oz.au> | 2004-08-10 01:24:54 (GMT) |
commit | 6a4e635beba3cad5f3d421cb92f9052151c927d8 (patch) | |
tree | 8c568c3b3eba34f90a727f3f7e3dd43ac8c87d12 /Lib/imaplib.py | |
parent | 494aaee902748bd8f85a8e1bafce80f2c2ad7381 (diff) | |
download | cpython-6a4e635beba3cad5f3d421cb92f9052151c927d8.zip cpython-6a4e635beba3cad5f3d421cb92f9052151c927d8.tar.gz cpython-6a4e635beba3cad5f3d421cb92f9052151c927d8.tar.bz2 |
Fix typo in getquotaroot parameter reported by Thierry FLORAC. Also amplify doc string for select to indicate proper way to obtain other responses.
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r-- | Lib/imaplib.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index 2bdabb2..f5481d7 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -19,7 +19,7 @@ Public functions: Internaldate2tuple # GET/SETQUOTA contributed by Andreas Zeidler <az@kreativkombinat.de> June 2002. # PROXYAUTH contributed by Rick Holbert <holbert.13@osu.edu> November 2002. -__version__ = "2.54" +__version__ = "2.55" import binascii, os, random, re, socket, sys, time @@ -452,7 +452,7 @@ class IMAP4: (typ, [[QUOTAROOT responses...], [QUOTA responses]]) = <instance>.getquotaroot(mailbox) """ - typ, dat = self._simple_command('GETQUOTA', mailbox) + typ, dat = self._simple_command('GETQUOTAROOT', mailbox) typ, quota = self._untagged_response(typ, dat, 'QUOTA') typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT') return typ, [quotaroot, quota] @@ -611,8 +611,10 @@ class IMAP4: (typ, [data]) = <instance>.select(mailbox='INBOX', readonly=None) 'data' is count of messages in mailbox ('EXISTS' response). + + Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY'), so + other responses should be obtained via <instance>.response('FLAGS') etc. """ - # Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY') self.untagged_responses = {} # Flush old responses. self.is_readonly = readonly if readonly is not None: |