email - Open local mbox mail archive with imap_open() in PHP -


i'm attempting read mbox email archive exported server locally, via file access, whatever reason i've tried fails. there magical trick parse local file , access php's built-in imap functionality?

you should able use php's built-in imap functionality. have tried this:

function openlocal($file_path) {          $mbox = imap_open("$file_path",'','');    if (!mbox) {       $errormsg = imap_last_error(); // error...      return false;    } else {       return true;    } } 

and call respective correct path:

openlocal('/home/email/temp/mailbox') 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -