Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a4e635

Browse files
author
Piers Lauder
committed
Fix typo in getquotaroot parameter reported by Thierry FLORAC. Also amplify doc string for select to indicate proper way to obtain other responses.
1 parent 494aaee commit 6a4e635

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Lib/imaplib.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# GET/SETQUOTA contributed by Andreas Zeidler <[email protected]> June 2002.
2020
# PROXYAUTH contributed by Rick Holbert <[email protected]> November 2002.
2121

22-
__version__ = "2.54"
22+
__version__ = "2.55"
2323

2424
import binascii, os, random, re, socket, sys, time
2525

@@ -452,7 +452,7 @@ def getquotaroot(self, mailbox):
452452
453453
(typ, [[QUOTAROOT responses...], [QUOTA responses]]) = <instance>.getquotaroot(mailbox)
454454
"""
455-
typ, dat = self._simple_command('GETQUOTA', mailbox)
455+
typ, dat = self._simple_command('GETQUOTAROOT', mailbox)
456456
typ, quota = self._untagged_response(typ, dat, 'QUOTA')
457457
typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
458458
return typ, [quotaroot, quota]
@@ -611,8 +611,10 @@ def select(self, mailbox='INBOX', readonly=None):
611611
(typ, [data]) = <instance>.select(mailbox='INBOX', readonly=None)
612612
613613
'data' is count of messages in mailbox ('EXISTS' response).
614+
615+
Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY'), so
616+
other responses should be obtained via <instance>.response('FLAGS') etc.
614617
"""
615-
# Mandated responses are ('FLAGS', 'EXISTS', 'RECENT', 'UIDVALIDITY')
616618
self.untagged_responses = {} # Flush old responses.
617619
self.is_readonly = readonly
618620
if readonly is not None:

0 commit comments

Comments
 (0)