aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-wks-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpg-wks-client.c')
-rw-r--r--tools/gpg-wks-client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gpg-wks-client.c b/tools/gpg-wks-client.c
index a30457e75..f77df8813 100644
--- a/tools/gpg-wks-client.c
+++ b/tools/gpg-wks-client.c
@@ -306,6 +306,14 @@ main (int argc, char **argv)
cmd = parse_arguments (&pargs, opts);
gpgrt_argparse (NULL, &pargs, NULL);
+ /* Check if gpg is build with sendmail support */
+ if (opt.use_sendmail && !NAME_OF_SENDMAIL[0])
+ {
+ err = gpg_error (GPG_ERR_NOT_IMPLEMENTED);
+ log_error ("sending mail is not supported in this build: %s\n",
+ gpg_strerror (err));
+ }
+
if (log_get_errorcount (0))
exit (2);