aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto>2006-10-11 16:21:41 +0000
committerrhatto <rhatto>2006-10-11 16:21:41 +0000
commit3c4457c59334cf0957477a8ebf1adb9f97f5573c (patch)
treee6952290ece8a8dd8bb218b9dbb227c77c45320b
parent60e63e6aed3782cf583010e0ac8fb9bd15b9a1f9 (diff)
downloadfirma-3c4457c59334cf0957477a8ebf1adb9f97f5573c.tar.gz
firma-3c4457c59334cf0957477a8ebf1adb9f97f5573c.tar.bz2
temp debug
-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