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
Post a Comment