我正在尝试通过 PHP 从电子邮件标头中读取请求已读回执和优先级标头。
IT 似乎imap_header
只显示选择的标题。下面的邮件标头应该但不包括我正在寻找的两个标头...
stdClass Object (
[date] => Tue, 30 Jul 2013 18:11:26 -0700 (MST)
[Date] => Tue, 30 Jul 2013 18:11:26 -0700 (MST)
[subject] => Return
Request Receipt + High Priority Test
[Subject] => Return Request
Receipt + High Priority Test
[in_reply_to] => <__@mrmail.com>
[message_id] => <__@mrmail.com>
[toaddress] => __@example.com [to] =>
Array (
[0] => stdClass Object (
[mailbox] => __ [host] => example.com
)
)
[fromaddress] => Someone <__@mrmail.com>
[from] =>
Array (
[0] =>
stdClass Object (
[personal] => Someone
[mailbox] => example
[host] => mrmail.com
)
)
[reply_toaddress] => Someone <__@mrmail.com>
[reply_to] =>
Array (
[0] => stdClass Object (
[personal] => Someone
[mailbox] => __
[host] => mrmail.com
)
)
[senderaddress] => Someone <__@mrmail.com>
[sender] =>
Array (
[0] => stdClass Object (
[personal] => Someone
[mailbox] => example
[host] => mrmail.com
)
)
[Recent] =>
[Unseen] => U
[Flagged] =>
[Answered] =>
[Deleted] =>
[Draft] =>
[Msgno] => 69
[MailDate] => 30-Jul-2013 19:18:03 -0600
[Size] => 2719
[udate] => 1375233483
那么我使用 PHP 中的什么函数来遍历所有标头?