Red Hat Bugzilla – Bug 1025807
Improve auto-selection of messages grouped by threads
Last modified: 2017-12-05 08:05:02 EST
+++ This bug was initially created as a clone of Bug #809542 +++
Description of problem:
When auto-moving within message list, move to "most preferred" or "least preferred unread". Auto moving within messages happens pretty often when e.g. user switches to the folder from another folder or when she clears search filter.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. move to the folder from another folder OR apply a search filter and clear it again
evolution moves in folders lists to one of following:
* the top of message list (in my case, to the oldest - least
interesting - actually)
* somewhere randomly among unread messages
evolution moves in message list so that "least preferred" unread message is visible - in my case of sorting by date, it's the oldest unread message
if the above is not possible, then it should move to "most preferred" message - in my case, the newest one aka the bottom of the list.
--- Additional comment from Milan Crha on 2012-04-04 07:32:25 EDT ---
I looked briefly in the code and the rule for selecting a message when moving to a folder looks close to this:
a) if previously selected message exists, select it
b) if it doesn't exist or is not saved (like when multiple messages were
selected when leaving the folder), then pick message with the same uid from
the previous folder (usually doesn't apply)
c) then pick first message in the list
That's only a rough view from the code, though.
Current evolution, the 3.4.0, uses different approach, it picks unread message, if it cannot restore previously selected message. It's part of 2.30 too, according to:
Thus patches available.
--- Additional comment from Milan Crha on 2013-05-09 14:37:12 EDT ---
Upstream patch part of 2.32.3, thus depend on the rebase bug.
--- Additional comment from errata-xmlrpc on 2013-10-31 09:27:12 EDT ---
Bug report changed from ON_QA to VERIFIED status by the Errata System:
Changed by: Jiri Koten (firstname.lastname@example.org)
When switching folders, evolution shows the last selected message if it still exists else shows the oldest unread message in the folder or else the newest read message.
(In reply to Jiri Koten from comment #0)
> When switching folders, evolution shows the last selected message if it
> still exists else shows the oldest unread message in the folder or else the
> newest read message.
Unfortunately this is not true if the messages are grouped by threads. In that case the msg list just jumps to the begging of the list. The oldest unread msg shows in the msg preview, but is not visible in the msg list.
I'm using Sort by Date (Ascending) and group by threads in my Inbox.
1) Unselect a msg in the msg list, hold Ctrl and Click the msg.
2) Switch to different folder.
3) Go back to your previous folder.
Same thing happens when I Collapse All Threads and the selected msg is not the first in the thread, then the msg list jumps to the top. I would expect that the first msg (the one at the top) in the thread is selected.
1) View > Expand All Threads
2) Select a msg inside a thread, e.g. at the bottom of the thread
3) View > Collapse All Threads
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.