Browse Source

Forward of attachments is fixed, I think. :-)

Tyler Akins 24 years ago
parent
commit
9b5295f506
1 changed files with 7 additions and 4 deletions
  1. 7 4
      src/compose.php

+ 7 - 4
src/compose.php

@@ -49,7 +49,7 @@
 
       if ($forward_id)
          $id = $forward_id;
-      else if ($reply_id)
+      elseif ($reply_id)
          $id = $reply_id;
 
 
@@ -175,10 +175,13 @@
         // Write Attachment to file
         $fp = fopen ($attachment_dir.$localfilename, "w");
       fputs ($fp, decodeBody(mime_fetch_body($imapConnection, $forward_id, $message->header->entity_id), $message->header->encoding));
-        fgets($imapConnection, 256);
-        fgets($imapConnection, 256);
-      fclose ($fp);
+      
+//      Don't know why these lines were included
+//        fgets($imapConnection, 256);
+//        fgets($imapConnection, 256);
 
+      fclose ($fp);
+      
       $attachments[$localfilename] = $filename;
       
       }