aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto>2006-10-09 20:41:47 +0000
committerrhatto <rhatto>2006-10-09 20:41:47 +0000
commitef35595696078577d1f8b2c675cae3258e138870 (patch)
tree9786b3f5362ad2960487234da4c9b47ee7175d6b
parentd67c4cac6165a60bca746b14392da8f19e54614d (diff)
downloadfirma-ef35595696078577d1f8b2c675cae3258e138870.tar.gz
firma-ef35595696078577d1f8b2c675cae3258e138870.tar.bz2
sendkey pgp/mime fix
-rwxr-xr-xfirma5
1 files changed, 4 insertions, 1 deletions
diff --git a/firma b/firma
index 670f6aa..ffeec56 100755
--- 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)