public function extractHeaderData($h) { global $msg_piping6; $sender = $h->from[0]; return array('from' => imapRoutine::mimeDecode($sender->personal), 'email' => strtolower($sender->mailbox) . '@' . $sender->host, 'subject' => $h->subject ? imapRoutine::mimeDecode($h->subject) : $msg_piping6, 'messageID' => isset($h->message_id) ? $h->message_id : '0', 'timestamp' => strtotime($h->date)); }