method getmsg documentation in bbn\Appui\Mailbox2

function($mid) { // input $mbox = IMAP stream, $mid = message id // output all the following: global $charset, $htmlmsg, $plainmsg, $attachments; $htmlmsg = $plainmsg = $charset = ''; $attachments = array(); bbnf_delete_dir($bbng_data_path . 'users/' . $_SESSION['bbn_user']['id'] . '/tmp_mail', false); // HEADER $h = imap_header($this->stream, $mid); // add code here to get date, from, to, cc, subject... // BODY $s = imap_fetchstructure($this->stream, $mid); if (!$s->parts) { // simple $this->getpart($mid, $s, 0); // pass 0 as part-number } else { // multipart: cycle through each part foreach ($s->parts as $partno0 => $p) { $this->getpart($mid, $p, $partno0 + 1); } } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.