summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hindborg <a.hindborg@samsung.com>2023-01-31 15:58:23 +0100
committerAndreas Hindborg <a.hindborg@samsung.com>2023-01-31 16:02:30 +0100
commitb3614fd3c2613d5652ddb6bf7d151d82273d1edb (patch)
treefa546cf7aa0d3a9b5e03aa7a9d02066f5af44c93
parentb71fe1ef95048326fc9e348e7302aadc75c3af84 (diff)
mu4e: Allow completion for symbolic links in maildir
This patch allows mu4e to autocomplete when `mu4e-root-maildor` contains symbolic links to other maildirs. Without this patch mu4e can still work when directories under `mu4e-root-maildor` are symlinks, but it will not autocomplete properly when using `mu4e-search-maildir`. Signed-off-by: Andreas Hindborg <nmi@metaspace.dk>
-rw-r--r--mu4e/mu4e-folders.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/mu4e/mu4e-folders.el b/mu4e/mu4e-folders.el
index 5c8be81..2b2ae66 100644
--- a/mu4e/mu4e-folders.el
+++ b/mu4e/mu4e-folders.el
@@ -231,7 +231,7 @@ Do so recursively and produce a list of relative paths."
(mu4e-join-paths path mdir) nil
"^[^.]\\|\\.[^.][^.]" t))))
(dolist (dentry dentries)
- (when (and (booleanp (cadr dentry)) (cadr dentry))
+ (when (or (and (booleanp (cadr dentry)) (cadr dentry)) (file-directory-p (mu4e-join-paths path (car dentry))))
(if (file-accessible-directory-p
(mu4e-join-paths (mu4e-root-maildir) mdir (car dentry) "cur"))
(setq dirs