From: garvinhicking Date: Fri, 28 Mar 2008 11:20:39 +0000 (+0000) Subject: Suppress version in email X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7ecf050c1d61221f7f114561293a0eea151548e4;p=s9y.git Suppress version in email --- diff --git a/include/functions.inc.php b/include/functions.inc.php index 04a76ec..9efdf7f 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -487,7 +487,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL 'fromName' => &$fromName, 'fromMail' => &$fromMail, 'blogMail' => $serendipity['blogMail'], - 'version' => 'Serendipity/' . $serendipity['version'], + 'version' => 'Serendipity' . ($serendipity['expose_s9y'] ? '/' . $serendipity['version'] : ''), 'legacy' => true, 'headers' => &$headers, 'message' => &$message @@ -513,8 +513,10 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL $maildata['headers'][] = 'From: "'. $maildata['fromName'] .'" <'. $maildata['blogMail'] .'>'; } $maildata['headers'][] = 'Reply-To: "'. $maildata['fromName'] .'" <'. $maildata['fromMail'] .'>'; - $maildata['headers'][] = 'X-Mailer: ' . $maildata['version']; - $maildata['headers'][] = 'X-Engine: PHP/'. phpversion(); + if ($serendipity['expose_s9y']) { + $maildata['headers'][] = 'X-Mailer: ' . $maildata['version']; + $maildata['headers'][] = 'X-Engine: PHP/'. phpversion(); + } $maildata['headers'][] = 'Message-ID: <'. md5(microtime() . uniqid(time())) .'@'. $_SERVER['HTTP_HOST'] .'>'; $maildata['headers'][] = 'MIME-Version: 1.0'; $maildata['headers'][] = 'Precedence: bulk';