PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail » Bug #7785

sendmail driver needs '-i' in sendmail_args

Details

Submitted2006-06-01 19:19 UTC
Fromanomie at users dot sf dot net
Assignedjon
StatusClosed
PackageMail
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2006-06-01 19:19 UTC] anomie at users dot sf dot net

Description:
------------
When sending a message containing a line with a lone dot, the sendmail driver will truncate the message unless the '-i' option is included in sendmail_args.

I don't know that -i should be included always, but it should probably be the default and should definately be mentioned in the documentation.

My local sendmail version is from RedHat's sendmail-8.12.10-1.1.1 package. sendmail.php revision 1.13.

Test script:
---------------
require "Mail.php";

$head=array(
"From"=>"test@example.com",
"To"=>"addr@invalid",
"Subject"=>"Test"
);
$body="Next line is a lone dot:\n.\nDo you see this line?\n";

$m=Mail::factory("sendmail");
$m->send($head["To"], $head, $body);

Expected result:
----------------
Delivered email resembles:
From: test@example.com
To: addr@invalid
Subject: Test

Next line is a lone dot:
.
Do you see this line?

Actual result:
--------------
Delivered email resembles:
From: test@example.com
To: addr@invalid
Subject: Test

Next line is a lone dot: