Merge branch 'ss/remove-mustquote' into next
This commit is contained in:
commit
21b10bbf55
@ -284,8 +284,6 @@ class WrappedIMAP4(UsefulIMAPMixIn, IMAP4):
|
|||||||
# imaplib2 uses this to poll()
|
# imaplib2 uses this to poll()
|
||||||
self.read_fd = self.sock.fileno()
|
self.read_fd = self.sock.fileno()
|
||||||
|
|
||||||
mustquote = re.compile(r"[^\w!#$%&'+,.:;<=>?^`|~-]")
|
|
||||||
|
|
||||||
def Internaldate2epoch(resp):
|
def Internaldate2epoch(resp):
|
||||||
"""Convert IMAP4 INTERNALDATE to UT.
|
"""Convert IMAP4 INTERNALDATE to UT.
|
||||||
|
|
||||||
|
@ -212,8 +212,6 @@ class IMAPServer:
|
|||||||
imapobj = imaplibutil.WrappedIMAP4(self.hostname, self.port,
|
imapobj = imaplibutil.WrappedIMAP4(self.hostname, self.port,
|
||||||
timeout=socket.getdefaulttimeout())
|
timeout=socket.getdefaulttimeout())
|
||||||
|
|
||||||
imapobj.mustquote = imaplibutil.mustquote
|
|
||||||
|
|
||||||
if not self.tunnel:
|
if not self.tunnel:
|
||||||
try:
|
try:
|
||||||
# Try GSSAPI and continue if it fails
|
# Try GSSAPI and continue if it fails
|
||||||
|
Loading…
x
Reference in New Issue
Block a user