X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmime.php;h=1419d58854dd7a859d3140abc07a842c07a9886a;hb=da1b55add6a9207dfd72e141e2fe4ec74cf26e3e;hp=f07d5760d111ea057d6bc2e956e13d7d440737c3;hpb=3437d85f576797ac217c27dcac3fc3c8008bb6a1;p=squirrelmail.git
diff --git a/functions/mime.php b/functions/mime.php
index f07d5760..989018ae 100644
--- a/functions/mime.php
+++ b/functions/mime.php
@@ -1,171 +1,201 @@
parseStructure($read);
- $msg = $res[0];
- $msg->setEnt('0');
+ $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 .= '
' . htmlspecialchars($read) . ''; + plain_error_message( $errormessage, $color ); + echo '