Browse Source

* Fixed typo when forwarding a message with attachments -- the attachment
type wouldn't be set properly. Only affects new attachment scheme with 1.1

Tyler Akins 24 years ago
parent
commit
5f001a09c9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/compose.php

+ 2 - 1
src/compose.php

@@ -46,6 +46,7 @@
        session_register('attachments');
    }
 
+
    // This function is used when not sending or adding attachments
    function newMail () {
       global $forward_id, $imapConnection, $msg, $ent_num, $body_ary, $body,
@@ -178,7 +179,7 @@
 
               $newAttachment['localfilename'] = $localfilename;
 	      $newAttachment['remotefilename'] = $filename;
-	      $newAttachment['type0'] = strtolower($message->header->type0 .
+	      $newAttachment['type'] = strtolower($message->header->type0 .
 	         '/' . $message->header->type1);
 
               // Write Attachment to file