After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 257068 - Message size indication in composer
Message size indication in composer
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.24.x (obsolete)
Other All
: Normal enhancement
: Future
Assigned To: Milan Crha
Evolution QA team
evolution[composer]
: 273502 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-04-15 16:14 UTC by Tim Waugh
Modified: 2009-04-28 22:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed evo patch (7.85 KB, patch)
2009-01-14 18:37 UTC, Milan Crha
reviewed Details | Review

Description Tim Waugh 2004-04-15 16:14:48 UTC
When there are attachments to an email being composed it would be great to
have a status bar at the bottom of the message composer window indicating
the total size of the message.

My wife often sends several attachments to people but wants to check that
the total message size is not too big, without having to add up all the sizes.
Comment 1 André Klapper 2005-05-09 22:02:40 UTC
*** Bug 273502 has been marked as a duplicate of this bug. ***
Comment 2 André Klapper 2005-05-09 22:03:36 UTC
please also make sure that it displays the *encoded* size (bug 273502).
Comment 3 Calum Benson 2005-07-28 10:40:15 UTC
Apologies for any spam... cc'ing usability-maint on all Evolution usability
bugs. Filter on EVO-USABILITY-SPAM to ignore.
Comment 4 André Klapper 2006-02-19 01:49:57 UTC
still missing in 2.5
Comment 5 Matthew Barnes 2008-03-11 00:29:03 UTC
Bumping version to a stable release.
Comment 6 Milan Crha 2009-01-14 18:37:08 UTC
Created attachment 126443 [details] [review]
proposed evo patch

for evolution;
Comment 7 Matthew Barnes 2009-01-14 22:40:19 UTC
Attachment size calculation looks good and I think displaying the total next to the attachment count is fine for now.

Ultimately, I was thinking about adding a status bar to the composer.  In addition to the usual displaying of tooltips as the user rolls over menu items, I thought the status bar could also show the full message size (attachments + message body) and update itself as the user types.  It may also provide a suitable solution to bug #559256.

Whichever way we go with the UI, we should make similar changes to CompEditor's attachment bar so it's consistent.  And I need to get off my duff and finish bug #516933 so we don't have so much duplicate attachment code laying around.

CC'ing Srini for his thoughts.
Comment 8 Srinivasa Ragavan 2009-01-19 05:19:13 UTC
Hmm, do we want two string? Total size and encoded size? Just 'Total' should do. Can we look at how other clients do?
Comment 9 Matthew Barnes 2009-01-19 13:06:37 UTC
We could compare on-disk size versus encoded size of individual attachments in the properties window.  But I think the number displayed in the composer window should answer the question "how big is this email?", which means encoded size.

As for other mailers:

Thunderbird: Can't find a size indication anywhere.
Claws: Shows on-disk size (I think) of individual attachments only.

Not sure about Apple Mail.  I'll ask my wife to check that.
Comment 10 Milan Crha 2009-04-28 16:44:03 UTC
Matt, as you committed your Attachment UI rewrite, which has there some size indication (I think very similar as the above), do you consider this bug to be still opened or not?
Comment 11 Matthew Barnes 2009-04-28 19:08:36 UTC
Yeah, I guess so.  It only shows the on-disk size of attachments, so it underestimates the actual size of the email.  But it's better than nothing.

I'll close it as FIXED.
Comment 12 Luke Hutchison 2009-04-28 20:15:51 UTC
Just add something like 28% to the on-disk size to estimate the transmission size.  (256 bits / base 64 = 1.25; there is some overhead for line endings and headers etc.)  You could just show the estimated total message transmission size in parentheses after the total:

Message size: 10kB (~13kB transmitted)
Comment 13 Matthew Barnes 2009-04-28 21:28:10 UTC
That's not a bad idea.
Comment 14 Luke Hutchison 2009-04-28 22:17:24 UTC
Don't forget to add in the size of the message in the composer, as well as 1-2kb for email headers (I'm guessing), and a few hundred bytes per message for mime headers...  Not a hard calculation overall though...