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:
Dirk-Jan C. Binnema
2025-02-23 11:21:52 +02:00
committed by GitHub

View File

@ -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")))