Need help to modify code viewmail.php

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


Hello,

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 : http://www.phpkode.com/source/p/mailwatch-for-mailscanner/mailwatch-1.0.5/mailscanner/viewmail.php

___________________________________________________________
Ils nous ont quittés en 2012. Voir le diaporama de nos chers disparus sur Voila.fr http://people.voila.fr/people/mediatheque/dossiers/ils-nous-ont-quittes-en-2012/


More information about the MailScanner mailing list