From: Michael M Slusarz Date: Tue, 30 Jun 2009 21:42:58 +0000 (-0600) Subject: Don't do this approximation - it is not needed. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=131fd184c48266e9c543c3a42e7bf94bc5d80572;p=horde.git Don't do this approximation - it is not needed. --- 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));