From 930e2981ced6547d14a48b47ffe8c34a656371ff Mon Sep 17 00:00:00 2001 From: xmailla Date: Sun, 29 Dec 2024 22:49:21 +0100 Subject: [PATCH] mailcheck: fix problem when calling check_cmd with a variable in profile See issue #1 on original project. My $MBLAZE is set to /Users/x/.config/mail In my mblaze profile, I customized MailCheckCommand to be: MailCheckCommand: fdm -f $MBLAZE/fdmrc -q fetch My small fix permits this otherwise, mailcheck aborts. --- mailcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailcheck b/mailcheck index 2767657..acebb95 100755 --- a/mailcheck +++ b/mailcheck @@ -43,7 +43,7 @@ wakeup () { mailcheck () { echo $(ts) checking ... - ${check_cmd} + $(echo $check_cmd | envsubst '$MBLAZE') if [ -n "${index_cmd}" ]; then echo $(ts) indexing ... ${index_cmd}