From 522c2e0dda44cb670cb7a913560c5b63a5bdb1e1 Mon Sep 17 00:00:00 2001 From: TEC Date: Thu, 1 Oct 2020 16:42:53 +0800 Subject: [PATCH] Mu4e: add some basic doctor checks --- modules/email/mu4e/doctor.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/email/mu4e/doctor.el diff --git a/modules/email/mu4e/doctor.el b/modules/email/mu4e/doctor.el new file mode 100644 index 000000000..81e0e55ba --- /dev/null +++ b/modules/email/mu4e/doctor.el @@ -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.")))