php search imap folder without password then search for list

derrickmoscow

New Member
I am looking for a way to use php to search a user's imap Contact folder for any files with a keyword (specifically 'lists') and merge those files together. A few issues: 1)I would like to do that without a password, if possible. I can use an admin pass if I have to. 2) I don't know how to merge the found files together as an xml file. What I have so far is incomplete, and probably wrong: \[code\]$srv = '{imap.example.com}Contacts';$conn = imap_open($srv, 'user', 'password');$lists = imap_list($conn, $srv, 'list');\[/code\]The file names are not 'list,' that's they keyword I'm looking for. If this were bash, I would do something like\[code\]grep -l list >> mylists.txt\[/code\]which probably isn't quite correct either. Anyway, I don't know how to get the intended result in php.
 
Back
Top