diff options
author | rhatto <rhatto> | 2006-10-12 14:59:13 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-12 14:59:13 +0000 |
commit | bbdc4200b471ad1ce8ac8bc8413e5e59a402dc91 (patch) | |
tree | 80f88da23ac8517220ee3b2492ffabbd563c23b0 | |
parent | cc12765fc23924600978c29e51a38589b76d9f55 (diff) | |
download | firma-bbdc4200b471ad1ce8ac8bc8413e5e59a402dc91.tar.gz firma-bbdc4200b471ad1ce8ac8bc8413e5e59a402dc91.tar.bz2 |
new function CreateMessageBodyPart, Content-Transfer-Encoding back to MimeWrapMessage and small fix
-rwxr-xr-x | firma | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -1799,6 +1799,7 @@ function EmailListAdministration { # send a message back to the administrator RECIPIENTS="$SENDER_ADDRESS" SUBJECT="admin request results" + CreateMessageBodyPart MimeWrapMessage echo "$MESSAGE" | $MAIL_AGENT $MAIL_AGENT_ARGS $SENDER_ADDRESS else @@ -1874,13 +1875,6 @@ 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="\ -Content-Type: text/plain; charset=iso-8859-1 -Content-Disposition: inline - -$MESSAGE_BODY" - GPG_MESSAGE="`echo -e "${PASSPHRASE}\n${MESSAGE_BODY}" | $GPG_ENCRYPT --recipient $RECIPIENTS`" # this is the body of the message to be sent, so no indentation here @@ -1907,6 +1901,26 @@ ${MESSAGE_HEADERS} ${MESSAGE_BODY}" } + +function CreateMessageBodyPart { + #------------------------------------------------------------- + # create a message body part + # + # parameter(s): none + # depends on variable(s): MESSAGE_BODY + # + # returns: 0 + #------------------------------------------------------------- + + # this is the body of the message to be sent, so no indentation here + MESSAGE_BODY="\ +Content-Type: text/plain; charset=iso-8859-1 +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +$MESSAGE_BODY" +} + #------------------------------------------------------------- # main() #------------------------------------------------------------- |