From a9e136161aa08c2646530889c916035527148a5f Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Sat, 17 Nov 2012 12:11:03 -0500
Subject: [PATCH] Use dedicated method to determine an attachment's file size

---
 program/steps/mail/func.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index c27009d..e789950 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1220,7 +1220,7 @@
               ))
             ) .
             html::span('image-filename', Q($attach_prop->filename)) .
-            html::span('image-filesize', Q($RCMAIL->show_bytes($attach_prop->size))) .
+            html::span('image-filesize', Q($RCMAIL->message_part_size($attach_prop))) .
             html::span('attachment-links',
               (in_array($attach_prop->mimetype, $client_mimetypes) ? html::a($show_link, rcube_label('showattachment')) . '&nbsp;' : '') .
               html::a($show_link['href'] . '&_download=1', rcube_label('download'))

--
Gitblit v1.9.1