mirror of https://github.com/djcb/mu.git
mu4e: don't try to open non-existent messages
When processing header updates, don't try to open a message that doesn't exist. Fixes issue #825.
This commit is contained in:
parent
3e6267fd05
commit
e977309de5
|
@ -598,14 +598,15 @@ after the end of the search results."
|
|||
(goto-char (point-min))
|
||||
(when mu4e~headers-msgid-target
|
||||
(mu4e-headers-goto-message-id mu4e~headers-msgid-target))
|
||||
(when mu4e~headers-view-target
|
||||
(mu4e-headers-view-message)) ;; view the message at point
|
||||
(when (and mu4e~headers-view-target (mu4e-message-at-point 'noerror))
|
||||
;; view the message at point when there is one.
|
||||
(mu4e-headers-view-message))
|
||||
(setq mu4e~headers-view-target nil
|
||||
mu4e~headers-msgid-target nil))
|
||||
(when (mu4e~headers-docid-at-point)
|
||||
(mu4e~headers-highlight (mu4e~headers-docid-at-point)))
|
||||
;; run-hooks
|
||||
(run-hooks 'mu4e-headers-found-hook)))
|
||||
(run-hooks 'mu4e-headers-found-hook)))
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue