Merge pull request #2822 from dcolascione/mu-skip-readability-check-remote
Call file-readable-p only on non-remote files
This commit is contained in:
@ -1432,7 +1432,8 @@ If SUBTHREAD is non-nil, only apply to subthread."
|
||||
(mu4e-error "Must be in mu4e-headers-mode (%S)" major-mode))
|
||||
(let* ((msg (mu4e-message-at-point))
|
||||
(path (mu4e-message-field msg :path))
|
||||
(_exists (or (file-readable-p path)
|
||||
(_exists (or (file-remote-p path)
|
||||
(file-readable-p path)
|
||||
(mu4e-warn "No message at %s" path)))
|
||||
(docid (or (mu4e-message-field msg :docid)
|
||||
(mu4e-warn "No message at point")))
|
||||
|
||||
Reference in New Issue
Block a user