diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-09-04 10:11:32 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-09-04 10:11:32 +0800 |
commit | 5900efacb0ffd690d8de2023f8422a62d0526a6a (patch) | |
tree | e75e436ed947fd5cc911a5b72903a4ae59d2d5e5 | |
parent | 9b59ddc87886a41d31935b4218b8e3bafe2c6301 (diff) | |
download | dotfiles-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.el | 4 |
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) |