Enable folderfiltering for MailDir repositories too
Currently we only filtered IMAP repositories, this patch enables filtering for Maildir repositories too. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
9c5f73d3b3
commit
7d34060217
@ -29,6 +29,8 @@ Changes
|
|||||||
|
|
||||||
* Documentation improvements concerning 'restoreatime' and some code cleanup
|
* Documentation improvements concerning 'restoreatime' and some code cleanup
|
||||||
|
|
||||||
|
* Maildir repositories now also respond to folderfilter= configurations.
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
@ -173,6 +173,12 @@ class MaildirRepository(BaseRepository):
|
|||||||
foldername,
|
foldername,
|
||||||
self.getsep(),
|
self.getsep(),
|
||||||
self))
|
self))
|
||||||
|
# filter out the folder?
|
||||||
|
if not self.folderfilter(foldername):
|
||||||
|
self.debug("Filtering out '%s'[%s] due to folderfilt"
|
||||||
|
"er" % (foldername, self))
|
||||||
|
retval[-1].sync_this = False
|
||||||
|
|
||||||
if self.getsep() == '/' and dirname != '':
|
if self.getsep() == '/' and dirname != '':
|
||||||
# Recursively check sub-directories for folders too.
|
# Recursively check sub-directories for folders too.
|
||||||
retval.extend(self._getfolders_scandir(root, foldername))
|
retval.extend(self._getfolders_scandir(root, foldername))
|
||||||
|
Loading…
Reference in New Issue
Block a user