mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feat(mu4e): respect XDG for mbsync config file
Support for this was only added in isync 1.5, but this way, users on
older can benefit from it through Emacs.
Ref: cf13630a00
/
This commit is contained in:
@ -35,7 +35,12 @@
|
|||||||
|
|
||||||
(cond ((or (modulep! +mbsync)
|
(cond ((or (modulep! +mbsync)
|
||||||
(eq +mu4e-backend 'mbsync))
|
(eq +mu4e-backend 'mbsync))
|
||||||
(setq mu4e-get-mail-command "mbsync -a"
|
(setq mu4e-get-mail-command
|
||||||
|
(format "mbsync --all --config %S"
|
||||||
|
;; 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"))
|
||||||
mu4e-change-filenames-when-moving t))
|
mu4e-change-filenames-when-moving t))
|
||||||
((or (modulep! +offlineimap)
|
((or (modulep! +offlineimap)
|
||||||
(eq +mu4e-backend 'offlineimap))
|
(eq +mu4e-backend 'offlineimap))
|
||||||
|
Reference in New Issue
Block a user