s/Deliver_SentMail/Deliver_SendMail/
[squirrelmail.git] / src / move_messages.php
index 027fbc0cee232e01234e647a29190ca11029481c..121a18cc876d0e13fa9c297bd60694c38e96676c 100644 (file)
@@ -96,7 +96,7 @@ function attachSelectedMessages($msg, $imapConnection) {
                $localfilename = GenerateRandomString(32, 'FILE', 7);
                $full_localfilename = "$hashed_attachment_dir/$localfilename";
                
-               $fp = fopen( $full_localfilename, 'w');
+               $fp = fopen( $full_localfilename, 'wb');
                fwrite ($fp, $body);
                fclose($fp);
                $newAttachment = array();