note 106069 deleted from function.imap-fetchstructure by danbrown

From: Date: Fri, 07 Oct 2011 14:53:37 +0000
Subject: note 106069 deleted from function.imap-fetchstructure by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183713@lists.php.net to get a copy of this message
Note Submitter: elvislicsari at gmail dot com ---- Update for david at hundsness dot com 12-Sep-2008 08:00. Hi David, First of all, you code it's great. Thanks a lot. Secondly, there is a small bug in the subpart recursion code block. I tried your code on an email which has been forwarded several times and it didn't return what it's supposed to. The solution is, instead of : // SUBPART RECURSION if ($p->parts) { foreach ($p->parts as $partno0=>$p2) getpart($mbox,$mid,$p2,$partno.'.'.($partno0+1)); // 1.2, 1.2.1, etc. } it should be // SUBPART RECURSION if ($p->parts[0]->parts) { foreach ($p->parts[0]->parts as $partno0=>$p2) getpart($mbox,$mid,$p2,$partno.'.'.($partno0+1)); // 1.2, 1.2.1, etc. } Cheers and thanks again for your contribution.

« previous php.notes (#183713) next »