From d4ebe552f2d94d18cb481f5764219007d5b1e1e2 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 2 Jan 2015 11:53:01 -0800 Subject: [PATCH] update offlineimap command to timeout to avoid hangs. Marks as read again in mu4e-view. --- dotfiles/emacs.d/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 6e54b6ee..7bbe5c4f 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -821,7 +821,7 @@ The current directory is assumed to be the project's root otherwise." (setq mu4e-sent-messages-behavior 'delete) ;; allow for updating mail using 'U' in the main view: - (setq mu4e-get-mail-command "offlineimap") + (setq mu4e-get-mail-command "timeout 60 offlineimap") (add-hook 'mu4e-compose-mode-hook (defun my-do-compose-stuff () (flyspell-mode))) @@ -848,7 +848,7 @@ marking if it still had that." (with-current-buffer buf (switch-to-buffer buf) (setq mu4e~view-msg msg) - (when t ;;(or embedded (not (mu4e~view-mark-as-read msg))) + (when (or (mu4e~view-mark-as-read msg) t) ;;(or embedded (not (mu4e~view-mark-as-read msg))) (let ((inhibit-read-only t)) (erase-buffer) (mu4e~delete-all-overlays)