cvs: pear /Log package.php package.xml /Log/Log mail.php

From: Date: Sun, 10 Apr 2005 21:44:18 +0000
Subject: cvs: pear /Log package.php package.xml /Log/Log mail.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-31087@lists.php.net to get a copy of this message
jon Sun Apr 10 17:44:18 2005 EDT Modified files: /pear/Log package.php package.xml /pear/Log/Log mail.php Log: The mail mail handler now uses \r\n instead of \n to terminate lines, per RFC 821. Bug: 4107 http://cvs.php.net/diff.php/pear/Log/package.php?r1=1.25&r2=1.26&ty=u Index: pear/Log/package.php diff -u pear/Log/package.php:1.25 pear/Log/package.php:1.26 --- pear/Log/package.php:1.25 Sun Jan 9 18:42:01 2005 +++ pear/Log/package.php Sun Apr 10 17:44:18 2005 @@ -5,10 +5,12 @@ $version = '1.9.0'; $notes = <<<EOT Added stringToPriority() for converting priority names to PEAR_LOG_* constants. +The mail mail handler now uses \\r\\n instead of \\n to terminate lines. EOT; $changelog = <<<EOT Added stringToPriority() for converting priority names to PEAR_LOG_* constants. (Bug 2853) +The mail mail handler now uses \\r\\n instead of \\n to terminate lines, per RFC 821. (Bug 4107) EOT; $package = new PEAR_PackageFileManager(); http://cvs.php.net/diff.php/pear/Log/package.xml?r1=1.79&r2=1.80&ty=u Index: pear/Log/package.xml diff -u pear/Log/package.xml:1.79 pear/Log/package.xml:1.80 --- pear/Log/package.xml:1.79 Sun Jan 9 18:42:01 2005 +++ pear/Log/package.xml Sun Apr 10 17:44:18 2005 @@ -14,10 +14,11 @@ </maintainers> <release> <version>1.9.0</version> - <date>2005-01-09</date> + <date>2005-04-10</date> <license>PHP License</license> <state>stable</state> - <notes>Added stringToPriority() for converting priority names to PEAR_LOG_* constants.</notes> + <notes>Added stringToPriority() for converting priority names to PEAR_LOG_* constants. +The mail mail handler now uses \r\n instead of \n to terminate lines.</notes> <deps> <dep type="pkg" rel="has" optional="yes">DB</dep> <dep type="ext" rel="has" optional="yes">sqlite</dep> @@ -84,10 +85,11 @@ <changelog> <release> <version>1.9.0</version> - <date>2005-01-09</date> + <date>2005-04-10</date> <license>PHP License</license> <state>stable</state> - <notes>Added stringToPriority() for converting priority names to PEAR_LOG_* constants. (Bug 2853)</notes> + <notes>Added stringToPriority() for converting priority names to PEAR_LOG_* constants. (Bug 2853) +The mail mail handler now uses \r\n instead of \n to terminate lines, per RFC 821. (Bug 4107)</notes> </release> <release> <version>1.8.7</version> http://cvs.php.net/diff.php/pear/Log/Log/mail.php?r1=1.22&r2=1.23&ty=u Index: pear/Log/Log/mail.php diff -u pear/Log/Log/mail.php:1.22 pear/Log/Log/mail.php:1.23 --- pear/Log/Log/mail.php:1.22 Sat Feb 26 09:48:58 2005 +++ pear/Log/Log/mail.php Sun Apr 10 17:44:18 2005 @@ -1,8 +1,8 @@ <?php /** - * $Header: /repository/pear/Log/Log/mail.php,v 1.22 2005/02/26 14:48:58 chagenbu Exp $ + * $Header: /repository/pear/Log/Log/mail.php,v 1.23 2005/04/10 21:44:18 jon Exp $ * - * @version $Revision: 1.22 $ + * @version $Revision: 1.23 $ * @package Log */ @@ -122,7 +122,7 @@ { if (!$this->_opened) { if (!empty($this->_preamble)) { - $this->_message = $this->_preamble . "\n\n"; + $this->_message = $this->_preamble . "\r\n\r\n"; } $this->_opened = true; } @@ -140,7 +140,7 @@ { if ($this->_opened) { if (!empty($this->_message)) { - $headers = "From: $this->_from\n"; + $headers = "From: $this->_from\r\n"; $headers .= "User-Agent: Log_mail"; if (mail($this->_recipient, $this->_subject, $this->_message, @@ -207,7 +207,7 @@ /* Extract the string representation of the message. */ $message = $this->_extractMessage($message); - $entry = sprintf("%s %s [%s] %s\n", strftime('%b %d %H:%M:%S'), + $entry = sprintf("%s %s [%s] %s\r\n", strftime('%b %d %H:%M:%S'), $this->_ident, Log::priorityToString($priority), $message); @@ -217,5 +217,4 @@ return true; } - }

« previous php.pear.cvs (#31087) next »