aboutsummaryrefslogtreecommitdiff
path: root/firma
diff options
context:
space:
mode:
Diffstat (limited to 'firma')
-rwxr-xr-xfirma13
1 files changed, 9 insertions, 4 deletions
diff --git a/firma b/firma
index 4bb007c..58e0b48 100755
--- a/firma
+++ b/firma
@@ -373,10 +373,12 @@ function ParseGpgDecryptStderr {
GetSenderAddress
fi
+ SIGNED_BY="` echo "$gpg_decrypt_stderr" | grep '^\[GNUPG:] GOODSIG' | grep "$SENDER_ADDRESS"`"
+
if
- echo "$gpg_decrypt_stderr" | \
- grep '^\[GNUPG:] GOODSIG' | \
- grep -q $SENDER_ADDRESS
+ echo "$gpg_decrypt_stderr" | \
+ grep '^\[GNUPG:] GOODSIG' | \
+ grep -q "$SENDER_ADDRESS"
then
SIGNATURE_MADE_BY_SENDER="1"
else
@@ -842,7 +844,10 @@ function ProcessMessage {
# this is the body of the message to be sent, so no indentation here
MESSAGE_BODY="\
It was not possible to process this message. Message was
- not sent by the person who signed it."
+ not sent by the person who signed it.
+
+ Sent by: $SENDER_ADDRESS
+ Signed by: $SIGNED_BY"
ComposeAndSendBounceMessage
fi