Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imap_body(3) [php man page]

IMAP_BODY(3)								 1							      IMAP_BODY(3)

imap_body - Read the message body

SYNOPSIS
string imap_body (resource $imap_stream, int $msg_number, [int $options]) DESCRIPTION
imap_body(3) returns the body of the message, numbered $msg_number in the current mailbox. imap_body(3) will only return a verbatim copy of the message body. To extract single parts of a multipart MIME-encoded message you have to use imap_fetchstructure(3) to analyze its structure and imap_fetchbody(3) to extract a copy of a single body component. PARAMETERS
o $ imap_stream -An IMAP stream returned by imap_open(3). o $msg_number - The message number o $options - The optional $options are a bit mask with one or more of the following: o FT_UID - The $msg_number is a UID o FT_PEEK - Do not set the Seen flag if not already set o FT_INTERNAL - The return string is in internal format, will not canonicalize to CRLF. RETURN VALUES
Returns the body of the specified message, as a string. PHP Documentation Group IMAP_BODY(3)

Check Out this Related Man Page

IMAP_HEADERINFO(3)							 1							IMAP_HEADERINFO(3)

imap_headerinfo - Read the header of the message

SYNOPSIS
object imap_headerinfo NULL (resource $imap_stream, int $msg_number, [int $fromlength], [int $subjectlength], [string $defaulthost]) DESCRIPTION
Gets information about the given message number by reading its headers. PARAMETERS
o $ imap_stream -An IMAP stream returned by imap_open(3). o $msg_number - The message number o $fromlength - Number of characters for the fetchfrom property. Must be greater than or equal to zero. o $subjectlength - Number of characters for the fetchsubject property Must be greater than or equal to zero. o $defaulthost - RETURN VALUES
Returns the information in an object with following properties: o toaddress - full to: line, up to 1024 characters o to - an array of objects from the To: line, with the following properties: personal, adl, mailbox, and host o fromaddress - full from: line, up to 1024 characters o from - an array of objects from the From: line, with the following properties: personal, adl, mailbox, and host o ccaddress - full cc: line, up to 1024 characters o cc - an array of objects from the Cc: line, with the following properties: personal, adl, mailbox, and host o bccaddress - full bcc: line, up to 1024 characters o bcc - an array of objects from the Bcc: line, with the following properties: personal, adl, mailbox, and host o reply_toaddress - full Reply-To: line, up to 1024 characters o reply_to - an array of objects from the Reply-To: line, with the following properties: personal, adl, mailbox, and host o senderaddress - full sender: line, up to 1024 characters o sender - an array of objects from the Sender: line, with the following properties: personal, adl, mailbox, and host o return_pathaddress - full Return-Path: line, up to 1024 characters o return_path - an array of objects from the Return-Path: line, with the following properties: personal, adl, mailbox, and host o remail - o date - The message date as found in its headers o Date - Same as date o subject - The message subject o Subject - Same as subject o in_reply_to - o message_id - o newsgroups - o followup_to - o references - o Recent - R if recent and seen, N if recent and not seen, ' ' if not recent. o Unseen - U if not seen AND not recent, ' ' if seen OR not seen and recent o Flagged - F if flagged, ' ' if not flagged o Answered - A if answered, ' ' if unanswered o Deleted - D if deleted, ' ' if not deleted o Draft - X if draft, ' ' if not draft o Msgno - The message number o MailDate - o Size - The message size o udate - mail message date in Unix time o fetchfrom - from line formatted to fit $fromlength characters o fetchsubject - subject line formatted to fit $subjectlength characters SEE ALSO
imap_fetch_overview(3). PHP Documentation Group IMAP_HEADERINFO(3)
Man Page