From: tokul Date: Tue, 2 Aug 2005 14:17:54 +0000 (+0000) Subject: B encoding code is unstable. needs more coding and testing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a7ba71a6f38178abe02e1e9a144cf5955defe422;p=squirrelmail.git B encoding code is unstable. needs more coding and testing git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9884 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index 48a410a3..05747945 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -326,7 +326,7 @@ function translateText(&$body, $wrap_at, $charset) { * @param string $ent_num (since 1.3.0) message part id * @param integer $id (since 1.3.0) message id * @param string $mailbox (since 1.3.0) imap folder name - * @param boolean $clean (since 1.5.1) Do not output stuff that's irrelevant for the printable version. + * @param boolean $clean (since 1.5.1 and 1.4.6) Do not output stuff that's irrelevant for the printable version. * @return string html formated message text */ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $mailbox='INBOX', $clean=FALSE) { @@ -804,13 +804,13 @@ function encodeHeader ($string) { } // Use B encoding for multibyte charsets + /* $mb_charsets = array('utf-8','big-5','gb2313','euc-kr'); if (function_exists('mb_encode_mimeheader') && in_array($default_charset,$mb_charsets) && - in_array($default_charset,sq_mb_list_encodings()) && - sq_count8bit($string)>=(strlen($string)/2)) { + in_array($default_charset,sq_mb_list_encodings())) { return mb_encode_mimeheader($string,$default_charset,'B',"\r\n"); - } + }*/ // Encode only if the string contains 8-bit characters or =? $j = strlen($string);