From 131fd184c48266e9c543c3a42e7bf94bc5d80572 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 30 Jun 2009 15:42:58 -0600 Subject: [PATCH] Don't do this approximation - it is not needed. --- imp/lib/Contents.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 104cd8477..b17420d33 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -572,16 +572,6 @@ class IMP_Contents $download_zip || ($mask & self::SUMMARY_SIZE)) { $part['bytes'] = $size = $mime_part->getBytes(); - - if ($part['bytes'] && - ($mime_part->getCurrentEncoding() == 'base64')) { - /* From RFC 2045 [6.8]: "...the encoded data are consistently - * only about 33 percent larger than the unencoded data." - * Thus, adding 33% to the byte size is a good estimate for - * our purposes. */ - $size *= 1.33; - } - $part['size'] = ($size > 1048576) ? sprintf(_("%s MB"), number_format($size / 1048576, 1)) : sprintf(_("%s KB"), max(round($size / 1024), 1)); -- 2.11.0