aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-09-04 10:11:32 +0800
committerAaron LI <aaronly.me@outlook.com>2016-09-04 10:11:32 +0800
commit5900efacb0ffd690d8de2023f8422a62d0526a6a (patch)
treee75e436ed947fd5cc911a5b72903a4ae59d2d5e5
parent9b59ddc87886a41d31935b4218b8e3bafe2c6301 (diff)
downloaddotfiles-5900efacb0ffd690d8de2023f8422a62d0526a6a.tar.bz2
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.
-rw-r--r--_spacemacs.d/config/aly-mu4e-config.el4
1 files 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)