Remove validation, add wsl specific check

This commit is contained in:
Samvid Mistry 2023-11-01 14:24:22 +05:30
parent 84512cbfe3
commit 7c30b99fae
1 changed files with 10 additions and 7 deletions

View File

@ -196,9 +196,12 @@ symbol, see `mu4e-header-info'."
"Get a readable path to MSG or raise an error.
If MSG is nil, use `mu4e-message-at-point'."
(let ((path (plist-get (or msg (mu4e-message-at-point)) :path)))
(unless (file-readable-p path)
(mu4e-error "No readable message at %s; database outdated?" path))
path))
;; (unless (file-readable-p path)
;; (mu4e-error "No readable message at %s; database outdated?" path))
(if mu4e-mu-through-wsl
(concat "//wsl.localhost/Ubuntu" path)
path)))
(defun mu4e-copy-message-path ()
"Copy the message-path of message at point to the kill ring."