From 45310f1c3ecbd8a652312bf950e6f43149afcee1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 5 Sep 2024 14:50:17 -0400 Subject: [PATCH] fix(mu4e): "no such file or directory: ~/.mbsyncrc" In c647957 "~/.mbsyncrc" was passed to mbsync quoted, preventing ~ from being expanded into $HOME. Now, I've chosen to omit the whole --config option if $XDG_CONFIG_HOME/isyncrc isn't present, since mbsync will fall back to ~/.mbsyncrc on its own. Amend: c6479574e6d3 Fix: #8048 --- modules/email/mu4e/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/email/mu4e/config.el b/modules/email/mu4e/config.el index 4f91e1486..d679ba26b 100644 --- a/modules/email/mu4e/config.el +++ b/modules/email/mu4e/config.el @@ -36,11 +36,11 @@ (cond ((or (modulep! +mbsync) (eq +mu4e-backend 'mbsync)) (setq mu4e-get-mail-command - (format "mbsync --all --config %S" + (concat "mbsync --all" ;; XDG support was added to isync 1.5, but this lets ;; users on older benefit from it sooner. - (or (file-exists-p! "isyncrc" (or (getenv "XDG_CONFIG_HOME") "~/.config")) - "~/.mbsyncrc")) + (when-let (file (file-exists-p! "isyncrc" (or (getenv "XDG_CONFIG_HOME") "~/.config"))) + (format " --config %S" file))) mu4e-change-filenames-when-moving t)) ((or (modulep! +offlineimap) (eq +mu4e-backend 'offlineimap))