]> gitweb.fluxo.info Git - firma.git/commitdiff
temp debug
authorrhatto <rhatto>
Wed, 11 Oct 2006 16:21:41 +0000 (16:21 +0000)
committerrhatto <rhatto>
Wed, 11 Oct 2006 16:21:41 +0000 (16:21 +0000)
firma

diff --git a/firma b/firma
index 4bb007cdf8194a9efd3a9570feeb6d0f80016442..58e0b48ee1856547d49e55f21ee980d2c826ac35 100755 (executable)
--- 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