diff options
author | rhatto <rhatto> | 2006-10-11 15:59:50 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-11 15:59:50 +0000 |
commit | 60e63e6aed3782cf583010e0ac8fb9bd15b9a1f9 (patch) | |
tree | 93d890390b62b11bf416bbf482c615fd2b5fa4a2 /firma | |
parent | 6f22d75407f537b3f914352ef350a1e926231ed8 (diff) | |
download | firma-60e63e6aed3782cf583010e0ac8fb9bd15b9a1f9.tar.gz firma-60e63e6aed3782cf583010e0ac8fb9bd15b9a1f9.tar.bz2 |
removed SIGNED_BY variable, changed MESSAGE_SIGNED_BY_SENDER determination
Diffstat (limited to 'firma')
-rwxr-xr-x | firma | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -373,9 +373,11 @@ function ParseGpgDecryptStderr { GetSenderAddress fi - SIGNED_BY="`echo "$gpg_decrypt_stderr" | grep '^\[GNUPG:] GOODSIG' | awk '{ print $4 }'`" - - if [ "$SIGNED_BY" == "$SENDER_ADDRESS" ]; then + if + echo "$gpg_decrypt_stderr" | \ + grep '^\[GNUPG:] GOODSIG' | \ + grep -q $SENDER_ADDRESS + then SIGNATURE_MADE_BY_SENDER="1" else SIGNATURE_MADE_BY_SENDER="0" @@ -840,10 +842,7 @@ 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. - - Sent by: $SENDER_ADDRESS - Signed by: $SIGNED_BY" + not sent by the person who signed it." ComposeAndSendBounceMessage fi @@ -1854,8 +1853,7 @@ GLOBAL_VARS=" KEYSERVER MODE ADMIN_MESSAGE - SIGNATURE_MADE_BY_SENDER - SIGNED_BY" + SIGNATURE_MADE_BY_SENDER" FUNCTIONS=" Usage |