1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Commit Graph

67 Commits

Author SHA1 Message Date
Johannes Schlüter c416b927f0 - It's 2006 and PHP 6 2006-02-08 21:03:00 +00:00
foobar bc8333c42a - Cleanups:
* unify the address handling to always strip leading whitespace
  * ws fixes
2006-01-06 02:04:22 +00:00
foobar df5cfe27b4 - Fixed bug #29334 (mail() provides incorrect message time header) 2005-08-07 22:06:29 +00:00
Anantha Kesari H Y 0a89e44ed7 NetWare cleanup
--Kamesh
2005-07-28 09:44:13 +00:00
Andrey Hristov 9e939133d2 FR 32275 - fifth parameter to preg_replace() to count number of replaces
made.
#it would be nice if someone of the doc team documents it. thanks!
2005-03-12 12:03:50 +00:00
Anantha Kesari H Y 147dab1b57 time.h is available in NetWare LibC.
path sperator has been changed from \ to / while including netware\sendmail_nw.h
2005-02-25 05:57:41 +00:00
Ilia Alshanetsky e8300c82a0 Stricter cc header check. 2005-01-19 18:54:23 +00:00
foobar 9feb47d70e - Fixed bug #28976 (use From: from headers if sendmail_from is empty) 2005-01-19 17:38:20 +00:00
Frank M. Kromann 819b2e56f9 Exporting symbols used in the imap extension 2003-12-08 22:10:42 +00:00
Ilia Alshanetsky a439221d6e Fixed bug #25333 (Possible body corruption & crash in win32 mail()). 2003-09-08 22:36:59 +00:00
Ilia Alshanetsky 5790626881 Fixed bug #22947 (Ack() inside win32/sendmail.c may stall in certain
situations).
2003-08-11 18:03:24 +00:00
Ilia Alshanetsky 6d8305a2d3 Fixed bug #25037 (Possible infinite loop inside SendText()) 2003-08-11 16:37:32 +00:00
Ilia Alshanetsky 9826911139 Fixed bug #23798 (Spaces were not being stripped from Bcc header)
Fixed bug #24663 (\n. sequences were not being escaped)
2003-07-23 16:03:10 +00:00
Wez Furlong 0a18a9d744 A add much more useful select(2) implementation than is provided by
windows sockets.  The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.

This change required linking against the winsock2 library.  In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default.  It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.

Also, add a win32 compatible pipe test when opening a stream from a pipe.  This test will only work on NT, win2k and XP platforms.  Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered.  I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Edin Kadribasic 6d55e3456f MFB:
Fixed bug #21442 (Crash of mail() on Windows when the first parameter
is empty).
2003-01-07 11:24:17 +00:00
Anantha Kesari H Y a53ff6ff54 NetWare related changes/modifications. 2003-01-03 15:17:43 +00:00
Sara Golemon 45ff90cb18 Typo. 2002-12-28 19:40:03 +00:00
Sara Golemon 072d5c2575 When scanning for cc: headers, make sure the header is JUST cc: and not bcc: or original-cc: or <anything-printable>cc:
See Bugs # 21036 and # 20707
2002-12-28 19:32:45 +00:00
Frank M. Kromann ac2f1624d7 Removing unused code and making sure headers are send when called from imap_mail() 2002-12-06 22:56:57 +00:00
Frank M. Kromann 32d7284c52 Dont scan headers for cc abd bcc if extra parameters are used for these 2002-11-30 21:50:17 +00:00
Markus Fischer bcadd534ee - Forgot to add an extra space. 2002-09-21 15:03:24 +00:00
Frank M. Kromann e2c5462d91 Oops. Last commit reverted some of sebastians changes. 2002-07-02 23:44:06 +00:00
Frank M. Kromann 57ec06677f Switch from imap_sendmail.* to sendmail.c under Win32 2002-07-02 22:29:13 +00:00
Sebastian Bergmann 596859eb44 Remove unused local variables. 2002-06-14 05:42:08 +00:00
Markus Fischer d4711e51ae - We don't need the check here because the regex makes sure we never have \r\n
at the end of the header.
2002-06-13 22:25:28 +00:00
Stefan Esser 6189dac445 Typo: == instead of = 2002-06-13 21:55:26 +00:00
Stefan Esser c3c4c6137a - should fix bug#17753 2002-06-13 21:42:39 +00:00
Markus Fischer 6c6ac37be4 - Headers are now rewritten to always have \r\n line endings for SMTP.
Also automatically removes superflous line breaks at
  the start and end of the header.
# http://cr.yp.to/docs/smtplf.html is a good read about this topic.
2002-06-05 17:08:38 +00:00
Markus Fischer 44afb19d40 - Fix a leak and a crash. 2002-06-03 14:39:30 +00:00
Markus Fischer 9a97d55647 - Only add the To: field with the $to parameter if we don't have it in the
custom header. This was the behaviour < 4.2.x (but it was broken, this one
  isn't).
# last commit for today, promised.
2002-06-02 23:39:59 +00:00
Markus Fischer d497ca147e - Revert fix for #14407. The From: header field IS different from the
sendmail_from field which is in fact the retturn path.
2002-06-02 22:54:48 +00:00
Markus Fischer 1ec78a1e18 - Try to fix most of the buffer overflows and dynamically allocate memory where
applicable.
2002-06-02 22:10:25 +00:00
Markus Fischer b04656ad40 - Finish implementation of custom smtp port (introduces "smtp_port" ini config). 2002-06-02 17:13:48 +00:00
Markus Fischer c43f813d8e - Rephrase comment 2002-06-02 16:25:06 +00:00
Markus Fischer 05293f09eb - Classig problem: right idea, wrong pointer ... 2002-06-02 15:29:07 +00:00
Markus Fischer aec7987d9e - Win32 mail() is no longer case-sensitive when it comes to match for any headers
(e.g. from:, cc:, etc).
# Fixed also a crash I introduced earlier, which tells me no one tested it :)
2002-05-17 16:16:27 +00:00
Frank M. Kromann bef1729fc6 Fixing line breaks 2002-05-15 17:40:28 +00:00
Markus Fischer 03faaee849 - Add support for Bcc in w32/sendmail code. 2002-05-15 10:11:33 +00:00
Markus Fischer 7a0866ff90 - Improve code so errors returned from the server are reported back to the user.
# Testers, testers, testers!
2002-05-14 20:40:39 +00:00
Markus Fischer b63236bd84 - Do not include the Cc: for the first Cc'd recipient (spotted by Richard). 2002-05-14 16:03:40 +00:00
Markus Fischer e3974c36ba - Convert unix to dos line endings.
# This is *really* annoying ... can only be an advantage for windows users imho.
2002-05-14 15:32:15 +00:00
Markus Fischer 0815b55950 - Try to find From: field in header, fallback to sendmail_from php.ini setting
(Original patch by Michael Sisolak <msisolak@yahoo.com>, enhanced a bit).
@- Win32 mail() supports parsing 'From:' field from header (msisolak@yahoo.com, Markus).
2002-05-14 15:29:28 +00:00
Markus Fischer 87286cdb3f - Fix win32 sendmail bug with Cc: in custom header not terminated with \r\n
- Fix some obvious errors returned by the module, little cleanup.
2002-05-14 13:52:18 +00:00
Frank M. Kromann a0492dc8f4 Adding cvs ID 2001-12-20 18:06:13 +00:00
Frank M. Kromann 66d7578c36 Remove check for "To:" in headers. If "Reply-To:" exists the the To: entry was not created.
This is WIn32 only.
2001-12-04 23:33:52 +00:00
Frank M. Kromann 86a884e538 modified to enable imap_mail() on win32 2001-12-04 18:47:07 +00:00
Derick Rethans 2afc5d6924 - Fix for bug 8909 and 12680 (timezone problem) 2001-11-30 09:29:15 +00:00
Sterling Hughes 9a2726e208 This should fix the multiple-line problem. 2000-09-05 00:26:15 +00:00
Zeev Suraski 97cb10bc9e Fix warning 2000-08-06 21:42:10 +00:00
Zeev Suraski f59cbb9ed1 Fix & optimize 2000-08-06 21:38:41 +00:00