X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fcompose.php;h=565bd923c966626e3c784dfe91f54a3360a47355;hp=4c226b81576ff8230afec58a68b4f0390a24c2ca;hb=3b5b889f6112b20ed8cf46d607b5fb7adee4206c;hpb=ec0b7dbda5eb9490db1a41c45f6d1d76b708fb7e diff --git a/src/compose.php b/src/compose.php index 4c226b81..565bd923 100644 --- a/src/compose.php +++ b/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; }