Package: signing-party Version: svn r505 Invoking gpg-mailkeys without setting EMAIL in ~/.gpg-mailkeys nor setting FROM in the environment sends out mails. Not setting these variables is most likely a configuration error and gpg-mailkeys should give an error and enforce setting the corresponding variables.
I propose the following patch against r505 in svn:
-- >8 --
---
gpg-mailkeys/gpg-mailkeys | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gpg-mailkeys/gpg-mailkeys b/gpg-mailkeys/gpg-mailkeys
index 7abe220..3bcfba8 100755
--- a/gpg-mailkeys/gpg-mailkeys
+++ b/gpg-mailkeys/gpg-mailkeys
@@ -47,6 +47,10 @@ fi
if [ -n "$EMAIL" ]; then
FROM="$EMAIL"
fi
+if [ -z "$FROM" ]; then
+ echo "Error: No EMAIL set in ~/.gpg-mailkeysrc and no FROM set in
environment."
+ exit 1
+fi
if [ -z "$SUBJECT" ]; then
SUBJECT="Your signed GPG key"
fi
--
1.8.1.5
signature.asc
Description: Digital signature

