Bug 3788

Summary: Please make "Go to previous unread" work as "Go to next unread"
Product: Claws Mail (GTK 2) Reporter: Andreas Rönnquist <andreas>
Component: UI/Message ListAssignee: users
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 3.15.0   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch hopefully fixing the problem
none
Better version of patch
none
Updated patch none

Description Andreas Rönnquist 2017-03-20 14:44:18 UTC
Previously to your changes regarding message sorting, I could do "Go to next unread message" and when there are no more unread messages in folder, it would ask to go (or not if that setting is set, but go at once) to the next folder.

This means I could press 'n' (customized setting) and step through a folder, and then it would continue on the next folder with unread messages, still by pressing 'n'.

Please add this same functionality to the code for "Go to previous unread message", since you have changed the sorting order, so that I can keep my workflow that I have used for ages in Claws.

An alternative could be to make it possible to open the oldest unread mail when opening a folder (That doesn't seem to be possible right now). - then I could use my old workflow with this new functionality.
Comment 1 Andreas Rönnquist 2017-03-21 09:04:33 UTC
With this new logic having "first unread email" set in "Selection on folder 
opening" should open the _oldest_ mail, right?

As it is now (I have my messages sorted by date descending), and I have
having 'N' go to "Next unread message", when there are no more _newer_
messages in the current folder, it goes to the top message in the next
folder with unread messages (1 or more), and then if I press 'N' again, 
even if I have more unread message in that folder, it goes to the next
folder again with unread messages.

Is this really the intention?

Also, I would say that bugs that break workflow should have different importance than
"enhancement"...
Comment 2 Paul 2017-03-21 09:31:35 UTC
(In reply to comment #1)
Please use the users' mailing list or IRC for general discussion.
Comment 3 Andreas Rönnquist 2017-03-28 13:45:48 UTC
Created attachment 1734 [details]
Patch hopefully fixing the problem

I add a patch, that I believe fixes the problem, adding two new options, "Go to next/prev unread message ignoring sorting", which should work just the way it used to before taking sorting in mind.

This way those who want the old way can have it, and those wanting the new, can have that.
Comment 4 Andreas Rönnquist 2017-03-28 18:58:48 UTC
Created attachment 1735 [details]
Better version of patch
Comment 5 Andreas Rönnquist 2017-03-29 05:52:50 UTC
Created attachment 1736 [details]
Updated patch

Adding possibility to add action to toolbar.
Comment 6 Arno Lutz 2017-06-21 19:43:56 UTC
(In reply to comment #5)
> Created attachment 1736 [details]
> Updated patch
> 
> Adding possibility to add action to toolbar.

I have the same problem.
Using openSuse Leap 42.1 and try compile 3.15.0 this problem comes up.
I always use schortcuts for going next unread mail, ignoring folders.
This work fine til 3.14.
Now i install new Leap 42.2 and try again with 3.15.0
Same problem appears!
There is not a problem with system, only claws.

I checked the patch and i does work, but: without shortcuts.
My easy way all times using easystroke, go with an stroke to next unreaded.
With a lot of accounts/News its the best way :-)

Can you fix and add funcionality for using shorcut?


BTW (maybe OT):
it was the first time then change system, with same old /home that claws chrashed.
All IMAP-Account changed to POP3 that i never use.
Hard work to corrent all existing accounts. Dont know waht happens and why :-(

Thanks
Arno