X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=program%2Finclude%2Frcube_smtp.php;h=8c668c0a4b03fb46f1a08d57051ba7783f262f96;hb=76507f7c63a660742e76889ad6e3919f3dde3bb0;hp=28df53ba5bad5fdab43cf5d0eae517328fd5e399;hpb=a2dd2e41259a5e90016efcd7d083020b95e25527;p=roundcube.git diff --git a/program/include/rcube_smtp.php b/program/include/rcube_smtp.php index 28df53b..8c668c0 100644 --- a/program/include/rcube_smtp.php +++ b/program/include/rcube_smtp.php @@ -15,7 +15,7 @@ | Author: Thomas Bruederli | +-----------------------------------------------------------------------+ - $Id: rcube_smtp.php 5033 2011-08-09 09:46:54Z alec $ + $Id: rcube_smtp.php 5499 2011-11-28 09:03:27Z alec $ */ @@ -214,14 +214,10 @@ class rcube_smtp if ($opts['dsn']) { $exts = $this->conn->getServiceExtensions(); - if (!isset($exts['DSN'])) { - $this->error = array('label' => 'smtpdsnerror'); - $this->response[] = "DSN not supported"; - return false; + if (isset($exts['DSN'])) { + $from_params = 'RET=HDRS'; + $recipient_params = 'NOTIFY=SUCCESS,FAILURE'; } - - $from_params = 'RET=HDRS'; - $recipient_params = 'NOTIFY=SUCCESS,FAILURE'; } // RFC2298.3: remove envelope sender address @@ -385,7 +381,7 @@ class rcube_smtp $from = $addresses[0]; // Reject envelope From: addresses with spaces. - if (strstr($from, ' ')) + if (strpos($from, ' ') !== false) return false; $lines[] = $key . ': ' . $value;