try looking for alternatives to maildirmake etc - see #213

pull/215/head
David Goodwin 6 years ago
parent 056e8af99b
commit 435d97c282

@ -52,7 +52,16 @@ if [ -e "$maildir" ]; then
exit 1 exit 1
fi fi
maildirmake "$maildir"
# try looking for maildirmake ...
MDM=`which maildirmake || which courier-maildirmake`
if [ "x${MDM}" = "x" ]; then
echo "Couldn't find maildirmake or courier-maildirmake in your PATH etc (via which)" >/dev/stderr
exit 1
fi
$MDM "$maildir"
if [ ! -d "$maildir" ]; then if [ ! -d "$maildir" ]; then
echo "$0: maildirmake didn't produce a directory; bailing out." echo "$0: maildirmake didn't produce a directory; bailing out."
exit 1 exit 1

Loading…
Cancel
Save