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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -