'KOI8-R', 'KOI8R' => 'KOI8-R', 'KOI8' => 'KOI8-R', 'CSKOI8R' => 'KOI8-R', 'KOI8-UA' => 'KOI8-U', // 'CP1251' => 'WINDOWS-1251', 'MACCYRILLIC' => 'X-MAC-CYRILLIC', 'MAC-CYRILLIC' => 'X-MAC-CYRILLIC', // 'CP866' => 'IBM866', 'CP-866' => 'IBM866', 'X-CP866' => 'IBM866', 'CSIBM866' => 'IBM866', '866' => 'IBM866' ); /* -------------------------------------------------------------------------- */ /* 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. */ function mime_structure ($bodystructure, $flags=array()) { /* Isolate the body structure and remove beginning and end parenthesis. */ $read = trim(substr ($bodystructure, strpos(strtolower($bodystructure), 'bodystructure') + 13)); $read = trim(substr ($read, 0, -1)); $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 ); echo "
\n\n" . '' . htmlspecialchars($read) . ' |