Skip to content

Commit

Permalink
Merge pull request #533 from axoroll7/axoroll7-patch-1
Browse files Browse the repository at this point in the history
Removed SPECIAL-USE capability check
  • Loading branch information
mjs authored Aug 27, 2023
2 parents a34f173 + dce5604 commit d26e60e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions imapclient/imapclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,9 @@ def find_special_folder(self, folder_flag):
"""
# Detect folder by looking for known attributes
# TODO: avoid listing all folders by using extended LIST (RFC6154)
if self.has_capability("SPECIAL-USE"):
for folder in self.list_folders():
if folder and len(folder[0]) > 0 and folder_flag in folder[0]:
return folder[2]
for folder in self.list_folders():
if folder and len(folder[0]) > 0 and folder_flag in folder[0]:
return folder[2]

# Detect folder by looking for common names
# We only look for folders in the "personal" namespace of the user
Expand Down

0 comments on commit d26e60e

Please sign in to comment.