Bug 289734 - KMail did not show the body of old E-Mails in cashed IMAP folder
Summary: KMail did not show the body of old E-Mails in cashed IMAP folder
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-24 12:25 UTC by Johann-Nikolaus Andreae
Modified: 2013-11-19 22:28 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johann-Nikolaus Andreae 2011-12-24 12:25:31 UTC
Version:           4.8 (using Devel) 
OS:                Linux

KMail did not display some older E-Mails. I can only se the header of the mail.
This is only for the IMAP happend.
The IMAP is configured for offline use.

Reproducible: Always

Steps to Reproduce:
Select an older E-Mail from a IMAP folder.
View the E-Mail at the Quickview or open it.

Actual Results:  
Only the header (from, to, spam status etc.) displayd.
Body and atachmend did not show.

Expected Results:  
Show body an Atachmend too.

OS: Linux (x86_64) release 3.1.0-1.2-desktop
Compiler: gcc
Comment 1 Jean Van Schaftingen 2012-02-15 16:06:11 UTC
I have the same problem, except that the body disappears for random messages.

The body and attachmend does not disappear from the server unless the message is copied to another IMAP or local folder.

Refreshing the folder does not change anything.

The IMAP is configured for offline use.

Version: 4.8.0
OS: Linux (x86_64) 3.1.9-1.4-desktop
Comment 2 Mario Santagiuliana 2012-03-20 08:59:13 UTC
I have a similar problem. It happen random and on a new message incoming in my IMAP Account. It happen on Local Folder too.

Info:
$ rpm -q kdepim
kdepim-4.8.1-3.fc16.x86_64
Comment 3 Amand Tihon 2012-11-20 08:36:54 UTC
Same problem here, with OpenSuSE 12.2 and kdepim4-4.9.3-361.1.x86_64.
I tried changing the account settings to disable the offline mode but the issue persisted.

When selecting the email, the preview pane quickly flashes a message (probably telling it is trying to fetch the mail, but I don't have the time to read it), then shows a blank message.
Displaying the message's source only shows the headers.
Comment 4 David Faure 2013-11-19 22:28:03 UTC
Should be fixed now (for 4.12).

Missing message bodies are fetched since 4.11,
and I just improved handling of offline accounts.


commit f0d85b1477dcf5a1a084e6715aa727da550ca2d0
Author: David Faure <faure@kde.org>
Date:   Tue Nov 19 23:06:38 2013 +0100

    Rework "offline page" logic.
    
    Pre-akonadi logic was to check for imap resource and check its offline status,
    when clicking on a mail.
    New logic is rather: always try to fetch mail (it could be cached, after all),
    and only on error, check if resource (of any type) is offline, and then show error page.
    
    The main bonus of this patch is that it removes the "early return" in case
    of offline mode, which led to a much slower folder-switching in the messagelist.