Skip to content

Commit

Permalink
Always fetch IMAP capabilities when opening new connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jan 18, 2022
1 parent 232be1e commit 839980e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kanmail/server/mail/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ def make_imap(self):
if self._selected_folder:
imap.select_folder(self._selected_folder)

# Ensure the IMAP object has capabilities cached as this is used internally
# within imapclient.
imap.capabilities()

self._imap = imap
self.config.log('info', f'Connected to IMAP server: {server_string}')

Expand Down

0 comments on commit 839980e

Please sign in to comment.