Bug 101785

Summary: Changing a folder jumps to new mail but does not display it
Product: [Applications] kmail Reporter: Daniel Schreiber <daniel.schreiber>
Component: folder listAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kollix, tic
Priority: NOR Keywords: triaged
Version: 1.8   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Daniel Schreiber 2005-03-18 11:20:59 UTC
Version:           1.8 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.8-2-686

Whenever I got new mail in a folder (online imap), KMail jumps to the first new message but does not display it. I have to choose another mail first and then go to that mail again to have it displayed.

Reproduce: 
1. Get new mail in another folder than the current one.
2. go to that folder
3. KMail selects first new mail, message body area is empty
4. go to another mail
5. go to the new mail, message body area shows message
Comment 1 Ingo Klöcker 2005-03-20 23:46:19 UTC
Does this really happen always you select another folder? I'm only seeing this if I did a quick search in the old folder (cf. bug 96749).
Comment 2 Daniel Schreiber 2005-03-20 23:52:36 UTC
Yes, it always happens when I select another folder. KDE has been configured to jump to first unread or new message. It does jump to that message but does not display it. This bug did not exist in KDE 3.3.x and earlier.

Tell me, if I can contribute anything to debug this issue. I built my KDE with konstruct, it seems like there are debugging symbols.
Comment 3 Philip Bailey 2005-05-08 21:29:45 UTC
This seems to be a duplicate of bug 95555.

I've seen this in kmail version 1.7.x for several months now.  I wondered whether this was an IMAP server issue:  I was using UW IMAP and swapped to Courier about the time I noticed this bug.  I'm presently using Courier imapd version 4.01.  This bug doesn't seem to occur for local folders - only for IMAP folders.  It does seem to be intermittent, for some reason that I have not yet pinned down;  restarting Kmail will temporarily remove the bug.
Comment 4 monstermunch 2005-07-13 09:54:49 UTC
Is this bug still being looked at? I have been experiencing this in KDE 3.4 and it's a very annoying bug. The first thing a user wants to do when opening their email client is to read their new mail and automatic selection of new mail is a great feature. As it does not display the imap message body while doing this, it is very frustrating to have to select another message and then the new one every time.
Comment 5 Manfred Mislik 2008-09-15 20:21:27 UTC
I followed the steps above with KMail 1.10.0 and found that the behaviour now seems to be that not the newest mail is selected but the one that was selected when the program was last closed (or logged out).

It did not happen that the message itself was not immediately displayed. But it seems to be a possible request that this behaviour can be set by the user. Aka, I want to see the last message that was displayed when I last quit the app or I always want to see the oldest/newest unread message.
Comment 6 Martin Koller 2009-07-30 23:38:00 UTC
I can not reproduce the empty display with kmail/KDE4.
As for comment 4: you can set which mail shall be selected when entering a folder 
in the settings/Misc section.