X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmime.php;h=1d7f0321136923d0039f953174bf4180e9dceb7a;hb=ffdae6e7ca11112273750f5ad80882164375a7e4;hp=478f4558e584f025521f19b2b42cda48e73fceaa;hpb=6cc670de711a39c7617a9fbfd4e523a9750ac48d;p=squirrelmail.git
diff --git a/functions/mime.php b/functions/mime.php
index 478f4558..1d7f0321 100644
--- a/functions/mime.php
+++ b/functions/mime.php
@@ -1,35 +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');
-/** add sqm_baseuri()*/
-include_once(SM_PATH . 'functions/display_messages.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. */
@@ -38,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 '