Class MIME_Structure

Description

$Horde: framework/MIME/MIME/Structure.php,v 1.87.10.32 2010-09-09 22:47:56 jan Exp $

The MIME_Structure:: class provides methods for dealing with MIME mail.

The default character set to use for messages should be defined in the variable $GLOBALS['mime_structure']['default_charset'] (defaults to US-ASCII per RFC 2045).

TODO: Convert to OO

Copyright 1999-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /MIME/MIME/Structure.php (line 27)


	
			
Method Summary
 void addMultipartInfo (array &$parts, [array $info = array()])
 &MIME_Message &parse (stdClass $body)
 array parseMIMEHeaders (string $headers, [boolean $decode = true], [boolean $lowercase = false])
Methods
addMultipartInfo (line 251)

Set the special information for certain MIME types.

  • since: Horde 3.2
void addMultipartInfo (array &$parts, [array $info = array()])
  • array &$parts: The list of parts contained within the multipart object.
  • array $info: Information about the multipart structure.
parse (line 37)

Given the results of imap_fetchstructure(), parse the structure of the message, figuring out correct bodypart numbers, etc.

  • return: The message parsed into a MIME_Message object.
&MIME_Message &parse (stdClass $body)
  • stdClass $body: The result of imap_fetchstructure().
parseMIMEHeaders (line 420)

Builds an array consisting of MIME header/value pairs.

  • return: An array consisting of the header name as the key and the header value as the value. A header with multiple entries will be stored in 'value' as an array.
array parseMIMEHeaders (string $headers, [boolean $decode = true], [boolean $lowercase = false])
  • string $headers: A text string containing the headers (e.g. output from imap_fetchheader()).
  • boolean $decode: Should the headers be decoded?
  • boolean $lowercase: Should the keys be in lowercase?
parseTextMIMEMessage (line 301)

Attempts to build a MIME_Message object from a text message.

  • return: A MIME_Message object, or false on error.
MIME_Message &parseTextMIMEMessage (string $text)
  • string $text: The text of the MIME message.

Documentation generated on Sun, 30 Jan 2011 05:22:26 +0000 by phpDocumentor 1.4.3