Mu4e: add some basic doctor checks

This commit is contained in:
TEC 2020-10-01 16:42:53 +08:00
parent a80ef01b88
commit 522c2e0dda
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C

View file

@ -0,0 +1,15 @@
;;; email/mu4e/doctor.el -*- lexical-binding: t; -*-
(unless (executable-find "mu")
(warn! "Couldn't find mu command. Mu4e requires this to work."))
(unless (or (executable-find "mbsync")
(executable-find "offlineimap"))
(wan! "Couldn't find mbsync or offlineimap command. \
You may not have a way of fetching mail."))
(when (and (featurep! :lang org)
(not IS-WINDOWS))
(unless (executable-find "identify")
(warn! "Couldn't find the identify command from imagemagik. \
LaTeX fragment re-scaling with org-msg will not work.")))