From 767d7c993e29bdcaa08f0a5f856e81b6c127667b Mon Sep 17 00:00:00 2001 From: Ravi R Kiran Date: Sun, 19 Sep 2021 22:15:38 -0500 Subject: Configurable executable name diff --git a/lisp/ravi-init-mu.el b/lisp/ravi-init-mu.el index 2dd84bd..97c625b 100644 --- a/lisp/ravi-init-mu.el +++ b/lisp/ravi-init-mu.el @@ -98,6 +98,8 @@ "Number of attempts so far to get mail") (defvar ravi/mu4e-last-fetched-contexts nil "The contexts for the last fetch") + (defvar ravi/mbsync-command "mbsync -q -q" + "Mailbox sync command; takes context(s) as argument") (defun ravi/check-whether-to-get-mail-for-account (context) (let* ((account-interval (when (mu4e-context-vars context) (assq 'ravi/account-update-interval (mu4e-context-vars context)))) @@ -113,7 +115,7 @@ (setq ravi/mu4e-get-mail-attempts (1+ ravi/mu4e-get-mail-attempts)) (setq ravi/mu4e-last-fetched-contexts contexts-to-get) (if contexts-to-get - (concat "mbsync -q -q " context-string) + (concat ravi/mbsync-command " " context-string) "true"))) ;; do nothing command (add-hook 'mu4e-update-pre-hook (lambda () -- cgit v0.10.1