]> gitweb.fluxo.info Git - firma.git/commitdiff
added SIGNED_BY variable
authorrhatto <rhatto>
Wed, 11 Oct 2006 15:46:30 +0000 (15:46 +0000)
committerrhatto <rhatto>
Wed, 11 Oct 2006 15:46:30 +0000 (15:46 +0000)
firma

diff --git a/firma b/firma
index ea097f4cf178a3f1f5be74d20058a9c0db6fa691..f5a16e9bc6e9276ac8930d4b70571cb0c8c106b1 100755 (executable)
--- a/firma
+++ b/firma
@@ -344,7 +344,6 @@ function ParseGpgDecryptStderr {
   #-------------------------------------------------------------
 
   local gpg_decrypt_stderr
-  local sender_address
 
   # get GPG_DECRYPT STDERR, discarding its STDOUT
   gpg_decrypt_stderr="$(
@@ -374,9 +373,9 @@ function ParseGpgDecryptStderr {
         GetSenderAddress  
       fi
 
-      sender_address="`echo "$gpg_decrypt_stderr" | grep '^\[GNUPG:] GOODSIG' | awk '{ print $4 }'`"
+      SIGNED_BY="`echo "$gpg_decrypt_stderr" | grep '^\[GNUPG:] GOODSIG' | awk '{ print $4 }'`"
 
-      if [ "$sender_address" == "$SENDER_ADDRESS" ]; then
+      if [ "$SIGNED_BY" == "$SENDER_ADDRESS" ]; then
         SIGNATURE_MADE_BY_SENDER="1"
       else
         SIGNATURE_MADE_BY_SENDER="0"
@@ -841,7 +840,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
@@ -1663,6 +1665,8 @@ ${MESSAGE_BODY}
     echo "$MESSAGE" | $MAIL_AGENT $MAIL_AGENT_ARGS $recipients
   done
 
+  FixListOwnerShip
+
 }
 
 
@@ -1700,6 +1704,7 @@ function GetSubscribersInfo {
     fi
   done
 
+  FixListOwnerShip
   return $?
 }
 
@@ -1849,7 +1854,8 @@ GLOBAL_VARS="
   KEYSERVER
   MODE
   ADMIN_MESSAGE
-  SIGNATURE_MADE_BY_SENDER"
+  SIGNATURE_MADE_BY_SENDER
+  SIGNED_BY"
 
 FUNCTIONS="
   Usage