Merge pull request #92 from thekix/master

Support for IMAPv4 ID extension
This commit is contained in:
Rodolfo García Peñas (kix) 2021-10-12 12:04:27 +02:00 committed by GitHub
commit 2ce05bc98a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -583,6 +583,11 @@ class IMAPServer:
af=self.af, af=self.af,
) )
# If 'ID' extension is used by the server, we should use it
if 'ID' in imapobj.capabilities:
l_str = '("name" "OfflineIMAP" "version" "{}")'.format(offlineimap.__version__)
imapobj.id(l_str)
if not self.preauth_tunnel: if not self.preauth_tunnel:
try: try:
self.__authn_helper(imapobj) self.__authn_helper(imapobj)