MIME header class input: header_string or array You must call parseHeader() function after creating object in order to fill object's parameters.
Located in /class/mime/Rfc822Header.class.php (line 26)
Bcc header
Cc header
Content Type object
Date header
Original date header as fallback for unparsable dates
Disposition notification for requesting message delivery notification (MDN)
Delivery notification (DR)
From header
In-reply-to header
Mail-Followup-To header
Message-ID header
Extra header
only needed for constructing headers in delivery class
Priority header
All headers, unparsed
References header
Reply-To header
Subject header
To header
X-Mailer header
SpamAssassin 'x-spam-status' header
Looking at the code years after it was written,
this is my (Paul) best guess as to what this function does (note that docs previously claimed that this function returns boolean or an array, but it no longer appears to return an array - an integer instead):
Inspects the TO and CC headers of the message represented by this object, looking for the address(es) given by $address
If $address is a string: Serves as a test (returns boolean) as to whether or not the given address is found anywhere in the TO or CC headers
If $address is an array: Looks through this list of addresses and returns the array index (an integer even if the array is given with keys of a different type) of the first matching $address found in this message's TO or CC headers, unless there is an exact match (meaning that the "personal information" in addition to the email address also matches), in which case that index (the first one found) is returned
function to get the array of addresses out of the header.
function to get the address strings out of the header.
example1: header->getAddr_s('to'). example2: header->getAddr_s(array('to', 'cc', 'bcc'))
Fills mlist array keys in rfc822Header object
recursive function for parsing address strings and storing them in an address stucture object.
personal name: encoded: =?charset?Q|B?string?= quoted: "string" normal: string email : <mailbox@host> : mailbox@host This function is also used for validating addresses returned from compose That's also the reason that the function became a little bit huge
Fills disposition object in rfc822Header object
Parse header field according to field type
Normalise the different Priority headers into a uniform value, namely that of the X-Priority header (1, 3, 5). Supports: Priority, X-Priority, Importance.
X-MS-Mail-Priority is not parsed because it always coincides with one of the other headers.
NOTE: this is actually a duplicate from the code in functions/imap_messages:parseFetch(). I'm not sure if it's ok here to call that function?
Parses the X-Spam-Status or X-Spam-Score header
RFC2184
Documentation generated on Mon, 13 Jan 2020 04:23:28 +0100 by phpDocumentor 1.4.3