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
1 changed files with 5 additions and 0 deletions

View File

@ -583,6 +583,11 @@ class IMAPServer:
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:
try:
self.__authn_helper(imapobj)