Browse Source

fix for processing literals
fix for setting the entity id of message/rfc822 attachments
(I realy thought I tested it enough, apparently not :-( )

stekkel 23 years ago
parent
commit
ca2b542445
1 changed files with 4 additions and 0 deletions
  1. 4 0
      class/mime.class

+ 4 - 0
class/mime.class

@@ -291,6 +291,9 @@ class message {
 
 		     $msg->header->type0 = $arg_a[0];
 		     $msg->type0 = $arg_a[0];
+
+		     $msg->header->type1 = $arg_a[1];
+		     $msg->type1 = $arg_a[1];
 		 
 		     $msg->parseEnvelope($read,&$i,&$hdr);
 		     $i++;
@@ -580,6 +583,7 @@ class message {
 	   $lit_cnt .= $read{$i};
 	   $i++;
 	}
+	$lit_cnt +=2; /* add the { and } characters */
 	$s = '';
 	for ($j = 0; $j < $lit_cnt; $j++) {
 	   $i++;