Bug 1025807 - Improve auto-selection of messages grouped by threads
Improve auto-selection of messages grouped by threads
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: evolution (Show other bugs)
Unspecified Unspecified
medium Severity medium
: beta
: 6.4
Assigned To: Matthew Barnes
Desktop QE
Depends On: 809542 883010
  Show dependency treegraph
Reported: 2013-11-01 12:02 EDT by Jiri Koten
Modified: 2017-12-05 08:05 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 809542
Last Closed: 2017-12-05 08:05:02 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Desktop 621839 None None None Never

  None (edit)
Description Jiri Koten 2013-11-01 12:02:33 EDT
+++ 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):

How reproducible:

Steps to Reproduce:
1. move to the folder from another folder OR apply a search filter and clear it again
Actual results:
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

Expected results:
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 info:

--- 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: 
Advisory RHSA-2013:15040-05: 
Changed by: Jiri Koten (jkoten@redhat.com)

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.
Comment 1 Jiri Koten 2013-11-01 12:18:17 EDT
(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.

Comment 2 Jiri Koten 2013-11-13 11:21:22 EST
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
Comment 4 Red Hat Bugzilla Rules Engine 2017-12-05 08:05:02 EST
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.

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