Fix TypeError: mappingproxy object does not support item assignment
This commit is contained in:
parent
89401f40e1
commit
7573ae080d
|
@ -17,7 +17,7 @@ def IMAP_starttls(self, keyfile=None, certfile=None,cert_reqs=ssl.CERT_NONE,ca_c
|
||||||
self.sock = ssl.wrap_socket(self.sock, keyfile, certfile,cert_reqs=cert_reqs,ca_certs=ca_certs)
|
self.sock = ssl.wrap_socket(self.sock, keyfile, certfile,cert_reqs=cert_reqs,ca_certs=ca_certs)
|
||||||
self.file = self.sock.makefile('rb')
|
self.file = self.sock.makefile('rb')
|
||||||
|
|
||||||
imaplib.IMAP4.__dict__['starttls']=IMAP_starttls
|
setattr(imaplib, 'starttls', IMAP_starttls)
|
||||||
imaplib.Commands['STARTTLS']=('NONAUTH',)
|
imaplib.Commands['STARTTLS']=('NONAUTH',)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue