fix for processing literals
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 5 Jul 2002 15:41:50 +0000 (15:41 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 5 Jul 2002 15:41:50 +0000 (15:41 +0000)
fix for setting the entity id of message/rfc822 attachments
(I realy thought I tested it enough, apparently not :-( )

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3054 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime.class

index ecf269208a17d3d9845a44dc2e54fe3133fb5bf3..de74e8dc5857e30109d79242aaea27202b12f59f 100644 (file)
@@ -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++;