X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fmime.php;h=f642133ec7bde39cc671be78ff689cfef6746b68;hp=fc5891aab650bf725712b6f00e54570c6b8588ff;hb=8b096f0a2427cf0019f4dc4433a3e02b9f6f5951;hpb=e842b215cc74203501fe50e52497f9f0329e721b diff --git a/functions/mime.php b/functions/mime.php index fc5891aa..f642133e 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -10,20 +10,24 @@ * messages. * * $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. */ @@ -36,11 +40,9 @@ function mime_structure ($bodystructure, $flags=array()) { 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 '