Page 1 of 1

Release from quarantine

Posted: 27 Jun 2012, 14:29
by veldaebel
My system :
Linux mail-server 2.6.32-220.17.1.el6.i686 #1 SMP Thu Apr 26 13:37:46 EDT 2012 i686 i686 i386 GNU/Linux
MailWatch Version = 1.2.0
MailScanner Version = 4.84.5
PHP Version = 5.3.3
MySQL Version = 5.1.61

I have put up some type of files that should put mail in quarantine. And it works, but when I want to release mail from quarantine, I get this error message in /var/log/httpd/ssl_error_log :
[Wed Jun 27 15:19:11 2012] [error] [client 10.10.10.11] PHP Parse error: syntax error, unexpected T_VARIABLE in /usr/share/squirrelmail/mailscanner/pear/Mail/mime.php on line 598, referer: https://10.35.1.38/mailscanner/detail.p ... 477i012472

And this is part of the file :
# vim /usr/share/squirrelmail/mailscanner/pear/Mail/mime.php
$headers['MIME-Version'] = '1.0';
if (isset($xtra_headers)) {
$headers = array_merge($headers, $xtra_headers);
}
$this->_headers = array_merge($headers, $this->_headers);

$ret = $this->_encodeHeaders($this->_headers);
$return $ret; <-----------this is line 598--------------<
}

/**
* Get the text version of the headers
* (usefull if you want to use the PHP mail() function)
*
* @param array $xtra_headers Assoc array with any extra headers.
* Optional.
* @return string Plain text headers
* @access public
*/
function txtHeaders($xtra_headers = null)
{

Frankly I have no idea what this is about.
Ideas?

Re: Release from quarantine

Posted: 29 Jun 2012, 13:01
by veldaebel
I found the cure for this problem ;-)
Replace the file /usr/share/squirrelmail/mailscanner/pear/Mail/mime.php for version 1.2.0 of MailWatch with the same file from the slightly older version.
:D