Bug 2122 - Incorrect message size calculation in summary view
Summary: Incorrect message size calculation in summary view
Status: RESOLVED WORKSFORME
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: UI/Message List (show other bugs)
Version: 3.7.5
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2010-02-19 14:43 UTC by Thierry Hugue
Modified: 2012-09-12 12:14 UTC (History)
0 users

See Also:


Attachments

Description Thierry Hugue 2010-02-19 14:43:32 UTC
The reported total size (in summary view) of certain messages is incorrect.
I'm saying this as I have here an example of a multi-part mail, which pieces are:
- message/rfc822 => 213k
- text/plain     =>   5k
- text/html      =>   9k
- image/jpeg     => 195k
Total should be ~213k.

Unfortunately, summary view displays... 3.20MB !!!


I don't know how to help identifying better where the problem could be... 
Don't hesitate if I could provide anything to help troubleshooting.

Thanks in advance,
Comment 1 Salvatore De Paolis 2010-02-19 15:02:41 UTC
It happens only with specific messages? Did you notice it happens with similar messages?
Could you send one of these message privately?
Comment 2 Thierry Hugue 2010-02-19 18:29:07 UTC
In parallel, I started claws in debug mode. 
I get the following information when reading this message:
------
main.c:971:The name com.google.code.Awn was not provided by any .service files
    message/rfc822 (offset:0 length:218232 encoding: 6)
        multipart/related (offset:1695 length:216537 encoding: 6)
            multipart/alternative (offset:1871 length:15885 encoding: 6)
                text/plain (offset:2027 length:5362 encoding: 3)
                text/html (offset:7545 length:10144 encoding: 3)
            image/jpeg (offset:18228 length:199937 encoding: 4)
------
Comment 3 Thierry Hugue 2010-02-19 18:32:13 UTC
Another email example:
-------
imap.c:1413:message 110235 has been already fully cached.
    message/rfc822 (offset:0 length:5210026 encoding: 6)
        multipart/mixed (offset:1717 length:5208309 encoding: 6)
            text/plain (offset:1871 length:12306 encoding: 3)
            application/msword (offset:14540 length:79541 encoding: 4)
            application/msword (offset:94520 length:5115439 encoding: 4)
--------

Summary should display something like 5210026/1024/1024=4.96MB. Instead, 3.70MB is displayed !
Comment 4 Paul 2010-03-11 09:05:37 UTC
Can you send one or two examples to me preivately? Send the whole msg file, attached.
Comment 5 Thierry Hugue 2010-03-13 00:51:41 UTC
Private mail sent !
Thanks in advance for your investigation...
Comment 6 Colin Leroy 2012-09-12 12:14:29 UTC
I can't reproduce that. If anyone can with a publicly attachable mail, please attach and reopen :)

Note You need to log in before you can comment on or make changes to this bug.