I'm playing with IMAP and it's giving me a crappy folder list that isn't organized what so ever. I created a function to break it all up into arrays but I can't figure out how to break it down like a directory structure.
Here's an example of the array I'm dealing with:
array(25) {
[0]=> array(1) {
["INBOX"]=> array(1) {
["projects"]=> array(1) {
["vancouverxchange"]=> NULL } } }
[1]=> array(1) {
["INBOX"]=> array(1) {
["projects"]=> array(1) {
["7dias7noches"]=> NULL } } }
[2]=> array(1) {
["INBOX"]=> array(1) {
["projects"]=> array(1) {
["misc"]=> NULL } } }
[3]=> array(1) {
["INBOX"]=> array(1) {
["projects"]=> array(1) {
["member-singlesnet"]=> NULL } } }
[4]=> array(1) {
["INBOX"]=> array(1) {
["projects"]=> array(1) {
["communityofminds"]=> NULL } } }
[5]=> array(1) { ["INBOX"]=> array(1) {
["projects"]=> array(1) {
["CancerGroup"]=> NULL } } }
I cut it down for here but as you can see I have my INBOX and projects I'd like to merge, and I've been messing with this all day so this part I'm just not able to give fresh thought on it. Any ideas? I'll share my work with who ever helps, I'm making a gmail like IMAP client but merging mysql for optional features. So far so good, not as hard as I thought, just tired and can't think straight. If this were a query I'd be done but I can't seem to think of this array in the same sense.