IMAP 函数
在线手册:中文 英文
PHP手册

imap_headers

(PHP 4, PHP 5)

imap_headersReturns headers for all messages in a mailbox

说明

array imap_headers ( resource $imap_stream )

Returns headers for all messages in a mailbox.

参数

imap_stream

imap_open() 返回的 IMAP 流。

返回值

Returns an array of string formatted with header info. One element per mail message.


IMAP 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Returns headers for all messages in a mailbox

用户评论:

mmuoio at gmail dot com (12-Oct-2009 06:39)

This function will not return a full subject line if it is longer than 25 characters.  I found this out after trying to search each header and move the email to a different folder depending on what the subject was (searching for year and project number).