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

diff --git a/firma b/firma
index 1bdfcac960c0acb3cd4a267e1fff0b390e9952ee..ebc670007afcc771c9629b681fcc9f0b6cfb924a 100755 (executable)
--- a/firma
+++ b/firma
@@ -1409,8 +1409,9 @@ 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="
+    MESSAGE_BODY="\
 This is an OpenPGP/MIME encrypted message (RFC 2440 and 3156)
 --$boundary
 Content-Type: application/pgp-encrypted
@@ -1423,9 +1424,9 @@ Content-Type: application/octet-stream; name=\"encrypted.asc\"
 Content-Disposition: inline; filename=\"encrypted.asc\"
 Content-Description: OpenPGP encrypted message
 
-$(echo -e "${PASSPHRASE}\n${MESSAGE_BODY}" | $GPG_ENCRYPT --recipient $recipients)
+${MESSAGE_BODY}
 
---$boundary--"
+--${boundary}--"
 
     AssembleMessage