Need help to modify code viewmail.php

eric.le.corre at eric.le.corre at
Fri Jan 25 11:18:31 GMT 2013


I can t see emails in mailwatch about this error : 
Non-static method Mail_mimeDecode::decode() should not be called statically in /var/www/mailscanner/viewpart.php on line 90
Non-static method Mail_mimeDecode::getMimeNumbers() should not be called statically in /var/www/mailscanner/viewpart.php on line 91

So, i tred unable E-STRICT but this method is not better

so, the best way is change this code not compatible with php5, i need some help :

$params['include_bodies'] = false;
$params['decode_bodies'] = true;
$params['decode_headers'] = true;
$params['input'] = $file;

$structure = Mail_mimeDecode::decode($params);
$mime_struct = Mail_mimeDecode::getMimeNumbers($structure);
the full code of viewmail.php is here :

Ils nous ont quittés en 2012. Voir le diaporama de nos chers disparus sur

More information about the MailScanner mailing list