fix mime stuff
authorkleing
Sun, 18 May 2003 16:15:01 +0200
changeset 14036 fb6040d4bbf8
parent 14035 c46ce87960fb
child 14037 3b7f3eec9684
fix mime stuff
Admin/pmail
--- a/Admin/pmail	Sun May 18 15:28:41 2003 +0200
+++ b/Admin/pmail	Sun May 18 16:15:01 2003 +0200
@@ -39,13 +39,14 @@
     local NAME=${FILE##*/}
 
     cat <<EOF
-$MIME_BOUNDARY
+--$MIME_BOUNDARY
 Content-Type: text/plain
 Content-Transfer-Encoding: 8bit
 Content-Disposition: attachment; filename="$NAME"
 
 EOF
     cat $FILE
+    echo
 }
 
 
@@ -65,16 +66,18 @@
 Mime-Version: 1.0
 Content-Type: multipart/mixed; boundary="$MIME_BOUNDARY"
 
-$MIME_BOUNDARY
+--$MIME_BOUNDARY
 Content-Type: text/plain
 Content-Transfer-Encoding: 8bit
 
 EOF
     cat $BODY
+    echo
 
     for a in $@; do print_attachment $a; done
 
-    echo "$MIME_BOUNDARY"
+    echo "--$MIME_BOUNDARY--"
+    echo 
 }
 
 ## main