]> gitweb.fluxo.info Git - firma.git/commitdiff
sendkey pgp/mime fix
authorrhatto <rhatto>
Mon, 9 Oct 2006 20:41:47 +0000 (20:41 +0000)
committerrhatto <rhatto>
Mon, 9 Oct 2006 20:41:47 +0000 (20:41 +0000)
firma

diff --git a/firma b/firma
index 670f6aaead71b2cd0abcd9196c59730a28d24df5..ffeec5647eb6b96f205a27b79f0cd3b35fc09119 100755 (executable)
--- a/firma
+++ b/firma
@@ -1409,8 +1409,8 @@ Content-Type: multipart/encrypted;
   boundary=\"${boundary}\"
 Content-Disposition: inline"
 
+    # this is the body of the message to be sent, so no indentation here
     MESSAGE_BODY="`$GPG --armor --export $LIST_ADDRESS`"
-    MESSAGE_BODY="`echo -e "${PASSPHRASE}\n${MESSAGE_BODY}" | $GPG_ENCRYPT --recipient $recipients`"
     MESSAGE_BODY="\
 Content-Type: multipart/mixed; boundary=\"$keyboundary\"
 Content-Disposition: inline
@@ -1424,6 +1424,9 @@ $MESSAGE_BODY
 
 --${keyboundary}--"
 
+    # now encrypt the message body
+    MESSAGE_BODY="`echo -e "${PASSPHRASE}\n${MESSAGE_BODY}" | $GPG_ENCRYPT --recipient $recipients`"
+
     # this is the body of the message to be sent, so no indentation here
     MESSAGE_BODY="\
 This is an OpenPGP/MIME encrypted message (RFC 2440 and 3156)