diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 76a0ea3..7842f51 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -18,3 +18,7 @@ Changes Bug Fixes --------- + +* Fix the missing folder error that occured when a new remote folder was + detected (IMAP<->Maildir) + diff --git a/offlineimap/repository/Maildir.py b/offlineimap/repository/Maildir.py index 70a5ca3..cdf054d 100644 --- a/offlineimap/repository/Maildir.py +++ b/offlineimap/repository/Maildir.py @@ -190,4 +190,8 @@ class MaildirRepository(BaseRepository): if self.folders == None: self.folders = self._getfolders_scandir(self.root) return self.folders - + + def forgetfolders(self): + """Forgets the cached list of folders, if any. Useful to run + after a sync run.""" + self.folders = None