From: pjsmith at microtech dot co dot gg Operating system: Windows 2003, IIS, ISAPI PHP version: 4.3.3 PHP Bug Type: *Mail Related Bug description: Mail() function is loosing cahracters when sending mail
Description: ------------ If you try to mail a string such as recur-bill: notes: -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) Comment: For info see http://www.gnupg.org iQCVAwUBP1R7lxOu+5gqBlaxAQHHqgQAqPNOlWVQWak4SQ6XUyIBu3c+09EE08lH MR8mlRGzxy6LZd8MFxmnVjSMyDQJMDWlNwfRFdIokKTI0zDV2IU74GAct9VyPF5D gW+cGXh7xyLdDBrq5BvjRlZ4iLspdgm1WHyZACV/DNikYTiax+XjYG34rCiN20Bn 3fqcGVXaGFM= =syYY -----END PGP SIGNATURE----- With a pgp signature, it seems to be missing 1 character of the first line of the signature, breaking it. This worked flawslessly with 4.3.2. When we upgraded yesterday, this started happening. I've spent several hours on this and it would appear that the mail() function is at fault. Reproduce code: --------------- Mail a pgp signed sig such as in the desciption and check the sig before and after sending. My messages are about 1,220 bytes in length on average with the sig at the bottom The code I'm usnig is $apptext=fread($domapp,filesize("uk_apps\\$appname". "_modify.asc")); fclose($domapp); mail("$recipient", "MODIFY", "$apptext", "From: <[EMAIL PROTECTED]>\r\nMessage-Id: <" . time() . "@microtech.co.gg>\r\nReply-To: <[EMAIL PROTECTED]>\r\nX-Mailer: PHP/" . phpversion()); Expected result: ---------------- It to send the mail with the string as supplied. -- Edit bug report at http://bugs.php.net/?id=25357&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25357&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25357&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25357&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25357&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25357&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25357&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25357&r=support Expected behavior: http://bugs.php.net/fix.php?id=25357&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25357&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25357&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25357&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25357&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25357&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25357&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25357&r=gnused
