File quilt-improve-formail-error.diff of Package quilt
From: Bernhard Walle <email@example.com>
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 <firstname.lastname@example.org>
quilt/mail.in | 7 +++++++
1 file changed, 7 insertions(+)
@@ -232,6 +232,13 @@ then
+# check if formail is installed before doing anything
+if ! type formail &> /dev/null
+ echo "You have to install 'formail' to use 'quilt mail'" >&2
+ exit 1
if [ $# -ge 1 ]
if [ "$1" = - ]