X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmime.php;h=09fc552c27b548e64a306f19efd3afe2a1949bcc;hb=16480e230636bdb794b6ef535b6537ee32c545c1;hp=b957f986f7699b4c6602558427455c676b1348ae;hpb=a48eba8f9a66dfe0aca3b22ac14bbdbeaedf80bf;p=squirrelmail.git diff --git a/functions/mime.php b/functions/mime.php index b957f986..09fc552c 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -3,27 +3,31 @@ /** * 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'); -/* --------------------------------------------------------------------------------- */ -/* MIME DECODING */ -/* --------------------------------------------------------------------------------- */ +/* -------------------------------------------------------------------------- */ +/* 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. */ @@ -34,12 +38,11 @@ function mime_structure ($bodystructure, $flags=array()) { 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 ); - echo "
\n\n" . - '' . htmlspecialchars($read) . ' |
' . htmlspecialchars($read) . ''; plain_error_message( $errormessage, $color ); echo '