and with that option set we don't have to escape.
Thnx to Cor Bosman the issue is solved.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3810
7612ce4b-ef26-0410-bec9-
ea0150e637f0
function preWriteToStream(&$s) {
if ($s) {
function preWriteToStream(&$s) {
if ($s) {
- $s = str_replace(".\n",".\r\n",str_replace("\r\n", "\n", $s));
+ $s = str_replace("\r\n", "\n", $s);
$from = $rfc822_header->from[0];
$envelopefrom = $from->mailbox.'@'.$from->host;
if (strstr($sendmail_path, "qmail-inject")) {
$from = $rfc822_header->from[0];
$envelopefrom = $from->mailbox.'@'.$from->host;
if (strstr($sendmail_path, "qmail-inject")) {
- $stream = popen (escapeshellcmd("$sendmail_path -f$envelopefrom"), "w");
+ $stream = popen (escapeshellcmd("$sendmail_path -i -f$envelopefrom"), "w");
- $stream = popen (escapeshellcmd("$sendmail_path -t -f$envelopefrom"), "w");
+ $stream = popen (escapeshellcmd("$sendmail_path -i -t -f$envelopefrom"), "w");