diff --git a/mu4e/mu4e-utils.el b/mu4e/mu4e-utils.el index c652bd0f..f3831667 100644 --- a/mu4e/mu4e-utils.el +++ b/mu4e/mu4e-utils.el @@ -258,10 +258,8 @@ Function will return the cdr of the list element." (if (file-accessible-directory-p (concat mu4e-maildir "/" mdir "/" (car dentry) "/cur")) (setq dirs (cons (concat mdir (car dentry)) dirs))) - (if (not (or (string-equal "cur" (car dentry)) - (string-equal "new" (car dentry)) - (string-equal "tmp" (car dentry)))) - (setq dirs (append dirs (mu4e~get-maildirs-1 path + (unless (member (car dentry) '("cur" "new" "tmp")) + (setq dirs (append dirs (mu4e~get-maildirs-1 path (concat mdir (car dentry) "/"))))))) dirs))