summaryrefslogtreecommitdiff
path: root/.emacs.d/modules/thanos-mu4e.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/modules/thanos-mu4e.el')
-rw-r--r--.emacs.d/modules/thanos-mu4e.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/modules/thanos-mu4e.el b/.emacs.d/modules/thanos-mu4e.el
index 709b4f9..8a09b95 100644
--- a/.emacs.d/modules/thanos-mu4e.el
+++ b/.emacs.d/modules/thanos-mu4e.el
@@ -35,10 +35,11 @@
(require 'mu4e)
-(when is-zeus (setf mu4e-update-interval (* 10 60)))
-
(setf mu4e-get-mail-command "mbsync -a")
+(when (and is-zeus (server-running-p))
+ (setf mu4e-update-interval (* 10 60)))
+
(defun set-mu4e-context (context-name full-name mail-address signature)
"Return a mu4e context named CONTEXT-NAME with :match-func matching
folder name CONTEXT-NAME in Maildir. The context's `user-mail-address',