[cvs] [Wiki] changed: Doc/Dev/MIMEPackage
Jan Schneider
jan at horde.org
Fri Feb 29 18:48:25 UTC 2008
jan Fri, 29 Feb 2008 13:48:25 -0500
Modified page: http://wiki.horde.org/Doc/Dev/MIMEPackage
New Revision: 3.8
Change log: Parse messages with an imap stream available
@@ -85,8 +85,15 @@
<code type="php">
require_once 'Horde/MIME/Structure.php';
$message = MIME_Structure::parseTextMIMEMessage($message_text);
+</code>
+
+If you have access to the mail server, you can also use:
+
+<code type="php">
+$structure = @imap_fetchstructure($stream, $uid, FT_UID);
+$message = MIME_Structure::parse($structure);
</code>
To determine the structure of the MIME message, e.g. to find out the MIME
ID we are looking for:
@@ -177,9 +184,8 @@
Subject: Some Subject';
/* Load libraries. */
require_once 'Horde/MIME/Structure.php';
-//require_once 'Horde/NLS.php';
/* Get message subject. */
$headers = MIME_Structure::parseMIMEHeaders($headerText);
$subject = $headers['Subject'];
More information about the cvs
mailing list