mu4e: allow mu4e-get-mail-command to be a function

For making it easier to influence the behavior.
This commit is contained in:
Dirk-Jan C. Binnema
2025-07-05 10:57:36 +03:00
parent 652c7dc6b5
commit 54ec919e8f
3 changed files with 25 additions and 15 deletions

View File

@ -559,7 +559,12 @@ BUFNAME is the name of the buffer, and DATA is lisp-data, if any."
"Set VAR to VAL if VAR is nil."
`(unless ,var (setq ,var ,val)))
;;; Misc
(defun mu4e--fun-val (val)
"If var is a function, return (funcall VAL), otherwise return VAL."
(if (functionp val) (funcall val) val))
(defun mu4e-join-paths (directory &rest components)
"Append COMPONENTS to DIRECTORY and return the resulting string.