From f7387f8c60d140b8b1c7236dfc2aa8d0471d05e7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 4 Jul 2019 12:31:27 -0400 Subject: Sort out dirstore once and for all --- worker/imap/list.go | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'worker/imap') diff --git a/worker/imap/list.go b/worker/imap/list.go index b9578ab..708e70f 100644 --- a/worker/imap/list.go +++ b/worker/imap/list.go @@ -17,19 +17,6 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) { // no need to pass this to handlers if it can't be opened continue } - if len(imapw.config.folders) > 0 { - // apply user filter - found := false - for _, folder := range imapw.config.folders { - if folder == mbox.Name || imapw.selected.Name == mbox.Name { - found = true - break - } - } - if !found { - continue - } - } imapw.worker.PostMessage(&types.Directory{ Message: types.RespondTo(msg), Name: mbox.Name, -- cgit 1.4.1-2-gfad0