[ Index ] |
|
Code source de Typo3 4.1.3 |
[Code source] [Imprimer] [Statistiques]
Contains a class with functions used to read email content $Id: class.t3lib_readmail.php 1421 2006-04-10 09:27:15Z mundaun $ Revised for TYPO3 3.6 May 2003 by Kasper Skaarhoj
Author: | Kasper Skaarhoj <kasperYYYY@typo3.com> |
Poids: | 473 lignes (16 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
t3lib_readmail:: (12 méthodes):
getMessage()
getTextContent()
getMailBoundaryParts()
getCType()
analyseReturnError()
decodeHeaderString()
extractNameEmail()
getContentTypeData()
makeUnixDate()
getGMToffset()
extractMailHeader()
fullParse()
Classe: t3lib_readmail - X-Ref
Functions used to read email contentgetMessage($mailParts) X-Ref |
Returns the text content of a mail which has previously been parsed by eg. extractMailHeader() Probably obsolete since the function fullParse() is more advanced and safer to use. param: array Output from extractMailHeader() return: string The content. |
getTextContent($content) X-Ref |
Returns the body part of a raw mail message (including headers) Probably obsolete since the function fullParse() is more advanced and safer to use. param: string Raw mail content return: string Body of message |
getMailBoundaryParts($boundary,$content) X-Ref |
Splits the body of a mail into parts based on the boundary string given. Obsolete, use fullParse() param: string Boundary string used to split the content. param: string BODY section of a mail return: array Parts of the mail based on this |
getCType($str) X-Ref |
Returns Content Type plus more. Obsolete, use fullParse() param: string "ContentType" string with more return: array parts in key/value pairs |
analyseReturnError($c) X-Ref |
Analyses the return-mail content for the Dmailer module - used to find what reason there was for rejecting the mail Used by the Dmailer, but not exclusively. param: string message body/text return: array key/value pairs with analysis result. Eg. "reason", "content", "reason_text", "mailserver" etc. |
decodeHeaderString($str) X-Ref |
Decodes a header-string with the =?....?= syntax including base64/quoted-printable encoding. param: string A string (encoded or not) from a mail header, like sender name etc. return: string The input string, but with the parts in =?....?= decoded. |
extractNameEmail($str) X-Ref |
Extracts name/email parts from a header field (like 'To:' or 'From:' with name/email mixed up. param: string Value from a header field containing name/email values. return: array Array with the name and email in. Email is validated, otherwise not set. |
getContentTypeData($contentTypeStr) X-Ref |
Returns the data from the 'content-type' field. That is the boundary, charset and mime-type param: string "Content-type-string" return: array key/value pairs with the result. |
makeUnixDate($dateStr) X-Ref |
Makes a UNIX-date based on the timestamp in the 'Date' header field. param: string String with a timestamp according to email standards. return: integer The timestamp converted to unix-time in seconds and compensated for GMT/CET ($this->serverGMToffsetMinutes); |
getGMToffset($GMT) X-Ref |
Parsing the GMT offset value from a mail timestamp. param: string A string like "+0100" or so. return: integer Minutes to offset the timestamp |
extractMailHeader($content,$limit=0) X-Ref |
This returns the mail header items in an array with associative keys and the mail body part in another CONTENT field param: string Raw mail content param: integer A safety limit that will put a upper length to how many header chars will be processed. Set to zero means that there is no limit. (Uses a simple substr() to limit the amount of mail data to process to avoid run-away) return: array An array where each key/value pair is a header-key/value pair. The mail BODY is returned in the key 'CONTENT' if $limit is not set! |
fullParse($content) X-Ref |
The extended version of the extractMailHeader() which will also parse all the content body into an array and further process the header fields and decode content etc. Returns every part of the mail ready to go. param: string Raw email input. return: array Multidimensional array with all parts of the message organized nicely. Use t3lib_div::debug() to analyse it visually. |
Généré le : Sun Nov 25 17:13:16 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |