Need help to modify code viewmail.php
James C.C. Chien
james at mindman.com.tw
Mon Jan 28 01:42:24 GMT 2013
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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-db_clean.patch
Type: application/octet-stream
Size: 899 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0012.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-detail.patch
Type: application/octet-stream
Size: 1398 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0013.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-filters.patch
Type: application/octet-stream
Size: 4403 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0014.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-geoip_update.patch
Type: application/octet-stream
Size: 776 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0015.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-ldap.patch
Type: application/octet-stream
Size: 6729 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0016.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-lists.patch
Type: application/octet-stream
Size: 2426 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0017.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-mailq.patch
Type: application/octet-stream
Size: 474 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0018.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-php5.patch
Type: application/octet-stream
Size: 2719 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0019.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-quarantine.patch
Type: application/octet-stream
Size: 583 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0020.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-utf8.patch
Type: application/octet-stream
Size: 4600 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0021.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-viewmail.patch
Type: application/octet-stream
Size: 480 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0022.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mailwatch-1.2.0-beta-4-viewpart.patch
Type: application/octet-stream
Size: 470 bytes
Desc: not available
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20130128/b24cf787/attachment-0023.obj
More information about the MailScanner
mailing list