cvs: pear /Mail package.xml /Mail/Mail sendmail.php
| From: | Jon Parise | Date: | Wed, 21 Jun 2006 05:48:40 +0000 |
| Subject: | cvs: pear /Mail package.xml /Mail/Mail sendmail.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40846@lists.php.net to get a copy of this message | ||
jon Wed Jun 21 05:48:40 2006 UTC
Modified files:
/pear/Mail package.xml
/pear/Mail/Mail sendmail.php
Log:
Changing the default 'sendmail_args' value to include the '-i' argument.
Bug: 7785
http://cvs.php.net/viewvc.cgi/pear/Mail/package.xml?r1=1.47&r2=1.48&diff_format=u
Index: pear/Mail/package.xml
diff -u pear/Mail/package.xml:1.47 pear/Mail/package.xml:1.48
--- pear/Mail/package.xml:1.47 Tue May 23 05:39:22 2006
+++ pear/Mail/package.xml Wed Jun 21 05:48:40 2006
@@ -39,6 +39,7 @@
- Mail::parseRecipients() now returns a PEAR_Error object on error. (Bug 7491)
- Mail_RFC822::isValidInetAddress() now permits domain parts longer than four characters. The two
character minimum remains in effect. (Bug 7562)
- Fixed the tests for the existence of the PHP_EOL constant. (Bug 7682)
+- Changed the default 'sendmail_args' value to include the '-i' argument. (Bug
7785)
</notes>
<state>stable</state>
http://cvs.php.net/viewvc.cgi/pear/Mail/Mail/sendmail.php?r1=1.14&r2=1.15&diff_format=u
Index: pear/Mail/Mail/sendmail.php
diff -u pear/Mail/Mail/sendmail.php:1.14 pear/Mail/Mail/sendmail.php:1.15
--- pear/Mail/Mail/sendmail.php:1.14 Tue May 23 05:39:22 2006
+++ pear/Mail/Mail/sendmail.php Wed Jun 21 05:48:40 2006
@@ -20,7 +20,7 @@
* Sendmail implementation of the PEAR Mail:: interface.
* @access public
* @package Mail
- * @version $Revision: 1.14 $
+ * @version $Revision: 1.15 $
*/
class Mail_sendmail extends Mail {
@@ -36,7 +36,7 @@
* sendmail wrapper binary.
* @var string
*/
- var $sendmail_args = '';
+ var $sendmail_args = '-i';
/**
* Constructor.
@@ -58,8 +58,12 @@
*/
function Mail_sendmail($params)
{
- if (isset($params['sendmail_path'])) $this->sendmail_path =
$params['sendmail_path'];
- if (isset($params['sendmail_args'])) $this->sendmail_args =
$params['sendmail_args'];
+ if (isset($params['sendmail_path'])) {
+ $this->sendmail_path = $params['sendmail_path'];
+ }
+ if (isset($params['sendmail_args'])) {
+ $this->sendmail_args = $params['sendmail_args'];
+ }
/*
* Because we need to pass message headers to the sendmail program on