Need help to modify code viewmail.php
eric.le.corre at voila.fr
eric.le.corre at voila.fr
Mon Jan 28 16:27:01 GMT 2013
hello,
not better. I tried everything but i didn t find.
the really problem is mimeDecode.php (Mail_mimeDecode::decode) return no data.
i viewmail.php, if i do
echo $file return all the email, it is good !
after : "$params['input'] = $file; no problem for that
after : $structure = Mail_mimeDecode::decode($params); <--- can t decode
echo $structure return nothing !
> Message du 28/01/13 à 03h50
> De : "James C.C. Chien"
> A : "'MailScanner discussion'"
> Copie à :
> Objet : RE: Need help to modify code viewmail.php
>
> Hi eric,
>
> Maybe you can try these patches from Himler Daniel for mailwatch 1.2beta.
>
> James
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of eric.le.corre at voila.fr
> Sent: Friday, January 25, 2013 10:33 PM
> To: MailScanner discussion
> Subject: re: Need help to modify code viewmail.php
>
> i this code, after
> $structure = Mail_mimeDecode::decode($params); $mime_struct = Mail_mimeDecode::getMimeNumbers($structure);
>
> i did
>
> echo $structure;
> echo $mime_struct;
> echo $file;
>
> the result dor $file is : i can see the email the result for $mime_struc is : "array"
> the result for $structure is : nothing, no data
>
> so Mail_mimeDecode seems dont work !
>
> > Message du 25/01/13 a 13h30
> > De : eric.le.corre at voila.fr
> > A : "MailScanner discussion"
> > Copie a :
> > Objet : Need help to modify code viewmail.php
> >
> > 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 quittes en 2012. Voir le diaporama de nos chers disparus
> > sur Voila.fr
> > http://people.voila.fr/people/mediatheque/dossiers/ils-nous-ont-quitte
> > s-en-2012/
> > --
> > MailScanner mailing list
> > mailscanner at lists.mailscanner.info
> > http://lists.mailscanner.info/mailman/listinfo/mailscanner
> >
> > Before posting, read http://wiki.mailscanner.info/posting
> >
> > Support MailScanner development - buy the book off the website!
> >
>
> ___________________________________________________________
> Ils nous ont quittes 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/
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>
> [ mailwatch-1.2.0-beta-4-db_clean.patch (1.0 Ko) ]
> [ mailwatch-1.2.0-beta-4-detail.patch (1.5 Ko) ]
> [ mailwatch-1.2.0-beta-4-filters.patch (5.2 Ko) ]
> [ mailwatch-1.2.0-beta-4-geoip_update.patch (0.9 Ko) ]
> [ mailwatch-1.2.0-beta-4-ldap.patch (7.6 Ko) ]
> [ mailwatch-1.2.0-beta-4-lists.patch (2.8 Ko) ]
> [ mailwatch-1.2.0-beta-4-mailq.patch (0.5 Ko) ]
> [ mailwatch-1.2.0-beta-4-php5.patch (3.0 Ko) ]
> [ mailwatch-1.2.0-beta-4-quarantine.patch (0.7 Ko) ]
> [ mailwatch-1.2.0-beta-4-utf8.patch (5.1 Ko) ]
> [ mailwatch-1.2.0-beta-4-viewmail.patch (0.5 Ko) ]
> [ mailwatch-1.2.0-beta-4-viewpart.patch (0.5 Ko) ]
___________________________________________________________
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