From 5900efacb0ffd690d8de2023f8422a62d0526a6a Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 4 Sep 2016 10:11:32 +0800 Subject: spacemacs: mu4e: tune the mu4e-get-mail-command `offlineimap` sometimes just gets stuck and doesn't exit, which prevent `mu4e` from updating index and getting new mails. Therefore, force kill existing `offlineimap` instance first. --- _spacemacs.d/config/aly-mu4e-config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_spacemacs.d/config/aly-mu4e-config.el b/_spacemacs.d/config/aly-mu4e-config.el index 8421350..873f0fa 100644 --- a/_spacemacs.d/config/aly-mu4e-config.el +++ b/_spacemacs.d/config/aly-mu4e-config.el @@ -4,7 +4,7 @@ ;; ;; Aaron LI ;; Created: 2016-02-21 -;; Updated: 2016-08-19 +;; Updated: 2016-09-03 ;; ;;; Commentary: @@ -175,7 +175,7 @@ sendmail-program "msmtp") ;; allow for fetch mail and update index using 'U' in the main view - (setq mu4e-get-mail-command "offlineimap -o -1") + (setq mu4e-get-mail-command "killall -SIGKILL offlineimap; offlineimap -o -1") ;; get mail and update index periodically in the background (unit: seconds) (setq mu4e-update-interval 900) -- cgit v1.2.2