Bug 264297

Summary: KMail should scroll automatically to show the most recent message(s)
Product: [Applications] kmail2 Reporter: Martin Kampas <martin.kampas+kdebugs>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: wishlist CC: jani-matti.hatinen, matofesi
Priority: NOR    
Version: 2.0.89   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Martin Kampas 2011-01-25 22:29:35 UTC
Version:           2.0.89 (using KDE 4.5.95) 
OS:                Linux

When sort order is set to "By Date/Time" and direction to "Least Recent on Top", one has to scroll down over all the messages every time a folder is open.

Reproducible: Always

Steps to Reproduce:
1. Set sort order to "By Date/Time" and direction to "Least Recent on Top"
2. Select a folder

Actual Results:  
The start of the message list is shown

Expected Results:  
The end of the message list should be shown, i.e. the most recent message should be available with no need to scroll for it.

OS: Linux (x86_64) release 2.6.36-gentoo-r5
Compiler: x86_64-pc-linux-gnu-gcc
Comment 1 Jani-Matti Hätinen 2011-02-17 22:21:07 UTC
Seconded. This bug is super annoying.

Also, this is somewhat of a regression from Kmail 1 series, where the message list was at least focused on the last message selected in the folder. In Kmail 2 the last selected message is not remembered between folder changes.

IMHO a preferable fix would be one, which would implement both things. I.e. when opening the message list of a mail folder:
 - Scroll to the message that was selected when the user last switched away from the folder
 - If such a message is not found (no message has ever been selected, or knowledge of the selected message has disappeared) scroll to show the latest e-mails in the folder

Also running Kmail 2.0.89 on KDE 4.6.0
Comment 2 Maciej J . Woloszyk 2011-07-15 08:11:16 UTC
There is also a problem when you actually scroll to the end of the list and then delete/move to other folder the last message and the list loses focus - it then jumps back to the beginning instead of staying at the bottom.

It's really annoing and one of the regressions from old kmail.