summaryrefslogtreecommitdiffstats
path: root/lisp/ravi-init-mu.el
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2021-09-20 03:15:38 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2021-09-20 03:15:38 (GMT)
commit767d7c993e29bdcaa08f0a5f856e81b6c127667b (patch)
tree3f7e25cd32e1e537e56ebb43542590cd9a59498b /lisp/ravi-init-mu.el
parent56541ffcbe15a4179e177e162020c3de2535e2ac (diff)
downloaddotemacs-767d7c993e29bdcaa08f0a5f856e81b6c127667b.zip
dotemacs-767d7c993e29bdcaa08f0a5f856e81b6c127667b.tar.gz
dotemacs-767d7c993e29bdcaa08f0a5f856e81b6c127667b.tar.bz2
Configurable executable name
Diffstat (limited to 'lisp/ravi-init-mu.el')
-rw-r--r--lisp/ravi-init-mu.el4
1 files changed, 3 insertions, 1 deletions
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 ()