Bug 315484

Summary: Calculation of attachment sizes is inconsistent in special cases.
Product: [Applications] kmail2 Reporter: Martin Walch <walch.martin>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: montel
Priority: NOR    
Version: 4.10.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: the file that is sent as attachment
a screenshot showing the problem
test case

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.