X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmime.php;h=1d7f0321136923d0039f953174bf4180e9dceb7a;hb=3e6ee6cac3f0661ac3d2ffc516bb5d3be5f8f14f;hp=989018ae08263043e02a707c5df5b6826d105269;hpb=da1b55add6a9207dfd72e141e2fe4ec74cf26e3e;p=squirrelmail.git
diff --git a/functions/mime.php b/functions/mime.php
index 989018ae..1d7f0321 100644
--- a/functions/mime.php
+++ b/functions/mime.php
@@ -1,33 +1,55 @@
url_parser
+translateText => url_parser
+
*/
-/** The typical includes... */
-require_once(SM_PATH . 'functions/imap.php');
-require_once(SM_PATH . 'functions/attachment_common.php');
/* -------------------------------------------------------------------------- */
/* MIME DECODING */
/* -------------------------------------------------------------------------- */
/**
-* 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.
-*/
+ * 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. */
@@ -36,12 +58,11 @@ function mime_structure ($bodystructure, $flags=array()) {
$i = 0;
$msg = Message::parseStructure($read,$i);
if (!is_object($msg)) {
- include_once(SM_PATH . 'functions/display_messages.php');
global $color, $mailbox;
/* 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 '