Bug 315484 - Calculation of attachment sizes is inconsistent in special cases.
Summary: Calculation of attachment sizes is inconsistent in special cases.
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 4.10.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-20 00:19 UTC by Martin Walch
Modified: 2017-01-07 22:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the file that is sent as attachment (54 bytes, text/plain)
2013-02-20 00:20 UTC, Martin Walch
Details
a screenshot showing the problem (38.82 KB, image/png)
2013-02-20 00:21 UTC, Martin Walch
Details
test case (3.20 KB, application/octet-stream)
2013-02-25 19:50 UTC, Martin Walch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Walch 2013-02-20 00:19:23 UTC
In the screenshot that I will attach, you can see the size of a text/plain attachment that has been transferred base64 encoded. Its size as ASCII file is 54 bytes. When base64 encoded, it shows up as 77 bytes and as 78 bytes. That does not seems right. Are there two code paths to calculate attachment size?

Reproducible: Always

Steps to Reproduce:
Send an email with a 54 bytes long text file attached. Open the sent email and compare the size of the attachment in the message structure (77 bytes) with the size in the properties dialog of the attachment (78 bytes).
Comment 1 Martin Walch 2013-02-20 00:20:27 UTC
Created attachment 77447 [details]
the file that is sent as attachment
Comment 2 Martin Walch 2013-02-20 00:21:08 UTC
Created attachment 77448 [details]
a screenshot showing the problem
Comment 3 Laurent Montel 2013-02-25 17:28:12 UTC
I can't reproduce it.
Comment 4 Martin Walch 2013-02-25 19:49:41 UTC
(In reply to comment #3)
> I can't reproduce it.

Have you encoded the attachment as base64?

I will attach a full example.
Comment 5 Martin Walch 2013-02-25 19:50:27 UTC
Created attachment 77573 [details]
test case

The whole email with all headers etc.
Comment 6 Laurent Montel 2013-02-26 06:44:02 UTC
Ok now with this test case I can see problem.
Regards.
Comment 7 Martin Walch 2014-04-24 13:59:34 UTC
Problem still there in KMail 4.13.0.
Comment 8 Denis Kurz 2016-09-24 18:19:00 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 9 Denis Kurz 2017-01-07 22:50:44 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.