From: Bernhard Walle Subject: [PATCH] Check for 'formail' in 'quilt mail' To allow using 'procmail' (which contains 'formail') as weak dependency in package managers, explicitely check for the 'formail' binary when invoking 'quilt mail' so that the user gets a clear error message when 'formail' is missing and knows what to do. Signed-off-by: Bernhard Walle --- quilt/mail.in | 7 +++++++ 1 file changed, 7 insertions(+) --- a/quilt/mail.in +++ b/quilt/mail.in @@ -232,6 +232,13 @@ then usage fi +# check if formail is installed before doing anything +if ! type formail &> /dev/null +then + echo "You have to install 'formail' to use 'quilt mail'" >&2 + exit 1 +fi + if [ $# -ge 1 ] then if [ "$1" = - ]