No need to filter Maildir folders here

commit e94642bb4d centralized folder filtering by using the
repository.should_sync_folder() function. Therefore there is no need
to check for folderfilter in the Maildir backend separately.

Origina patch by Dave, split into 3 by Sebastian

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Dave Abrahams 2012-09-01 02:49:00 +02:00 committed by Sebastian Spaeth
parent e94642bb4d
commit 7d1d5283f8

View File

@ -181,11 +181,6 @@ class MaildirRepository(BaseRepository):
foldername,
self.getsep(),
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 != '':
# Recursively check sub-directories for folders too.