X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fmime.php;h=05747945d1627c0e03014201cdc8e1769cbca21b;hp=933523b55a66a179f2c35efcc18eeb737d329351;hb=a7ba71a6f38178abe02e1e9a144cf5955defe422;hpb=5166f86aad45f37b514887adfc014dd305be0e0e
diff --git a/functions/mime.php b/functions/mime.php
index 933523b5..05747945 100644
--- a/functions/mime.php
+++ b/functions/mime.php
@@ -3,27 +3,33 @@
/**
* mime.php
*
- * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This contains the functions necessary to detect and decode MIME
* messages.
*
- * $Id$
+ * @version $Id$
+ * @package squirrelmail
*/
+/** The typical includes... */
require_once(SM_PATH . 'functions/imap.php');
require_once(SM_PATH . 'functions/attachment_common.php');
+/** add sqm_baseuri()*/
+include_once(SM_PATH . 'functions/display_messages.php');
/* -------------------------------------------------------------------------- */
/* MIME DECODING */
/* -------------------------------------------------------------------------- */
-/* This function gets the structure of a message and stores it in the "message" class.
+/**
+ * Get the MIME structure
+ *
+ * This function gets the structure of a message and stores it in the "message" class.
* It will return this object for use with all relevant header information and
* fully parsed into the standard "message" object format.
*/
-
function mime_structure ($bodystructure, $flags=array()) {
/* Isolate the body structure and remove beginning and end parenthesis. */
@@ -37,7 +43,7 @@ function mime_structure ($bodystructure, $flags=array()) {
/* removed urldecode because $_GET is auto urldecoded ??? */
displayPageHeader( $color, $mailbox );
$errormessage = _("SquirrelMail could not decode the bodystructure of the message");
- $errormessage .= '
'._("the provided bodystructure by your imap-server").':
';
+ $errormessage .= '
'._("The bodystructure provided by your IMAP server:").'
';
$errormessage .= '
' . htmlspecialchars($read) . ''; plain_error_message( $errormessage, $color ); echo '