Summary: | timeout on unread status doesn't work properly | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Fabio Rossi <rossi.f> |
Component: | message list | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | montel |
Priority: | NOR | ||
Version: | 4.7 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.8 | |
Sentry Crash Report: | |||
Attachments: | debug.patch |
Description
Fabio Rossi
2011-10-12 22:01:22 UTC
Git commit 4d0d4f9f68ffc48e142c2decd632d9bdbcf38de4 by Montel Laurent. Committed on 13/10/2011 at 12:18. Pushed by mlaurent into branch 'master'. Fix Bug 283887 - timeout on unread status doesn't work properly (restore feature as kmail1) FIXED-IN: 4.7.3 BUG: 283887 BUG: 279019 M +15 -14 messageviewer/markmessagereadhandler.cpp http://commits.kde.org/kdepim/4d0d4f9f68ffc48e142c2decd632d9bdbcf38de4 Git commit 12266b76f236f79aca01e2373089e486404a832c by Montel Laurent. Committed on 13/10/2011 at 12:18. Pushed by mlaurent into branch 'KDE/4.7'. Fix Bug 283887 - timeout on unread status doesn't work properly (restore feature as kmail1) FIXED-IN: 4.7.3 BUG: 283887 BUG: 279019 M +17 -15 messageviewer/markmessagereadhandler.cpp http://commits.kde.org/kdepim/12266b76f236f79aca01e2373089e486404a832c I tried the patch but still doesn't work :-( Basically what happens it that after I select an unread message and quickly select another message, the first message's status stays unread for the time specified in "Misc -> Mark selected message as read after", then it's marked as read in any case. What I expect is different: the message should be marked as read only if the timeout indicated above elapses AND if the unread message is still selected. Reopening the bug It works as described Reclose it Reopening, just tested with kmail 4.7.4. It *almost* works but there is a trivial problem. Let's assume there are two unread messages B and C while we're looking at read message A. To reproduce the problem: 1) select message B 2) quickly reselect A before the timer specified in "Misc -> Mark selected message as read after" expires; in this way B is still unread (correctly) 3) now reselect B for a longer period than the timer, in this case the message is never marked read (wrong!) 4) now select C and wait for the timer to expire; C is marked as read 5) only now you can select B and it'll be marked as read after the timer expires Let me know if something is not clear Ok now I understand you bug and fixed it. Sorry I didn't see this problem. Git commit ecb724ef9f093f235f83d5f42f82a4ffe2358798 by Montel Laurent. Committed on 22/12/2011 at 10:57. Pushed by mlaurent into branch 'master'. Fix bug bug 283887 timeout on unread status doesn't work properly BUG: 283887 FIXED-IN: 4.8 M +1 -2 messageviewer/markmessagereadhandler.cpp http://commits.kde.org/kdepim/ecb724ef9f093f235f83d5f42f82a4ffe2358798 Git commit bde2985c5e10235c83593fe4b7646d9bb3a30ddc by Montel Laurent. Committed on 22/12/2011 at 10:57. Pushed by mlaurent into branch 'KDE/4.8'. Fix bug bug 283887 timeout on unread status doesn't work properly BUG: 283887 FIXED-IN: 4.8 (cherry picked from commit ecb724ef9f093f235f83d5f42f82a4ffe2358798) M +1 -2 messageviewer/markmessagereadhandler.cpp http://commits.kde.org/kdepim/bde2985c5e10235c83593fe4b7646d9bb3a30ddc Git commit 7f27bade0213acc6f78c16d930b33a699c62766f by Montel Laurent. Committed on 22/12/2011 at 10:57. Pushed by mlaurent into branch 'KDE/4.7'. Fix bug bug 283887 timeout on unread status doesn't work properly BUG: 283887 FIXED-IN: 4.8 (cherry picked from commit ecb724ef9f093f235f83d5f42f82a4ffe2358798) M +1 -2 messageviewer/markmessagereadhandler.cpp http://commits.kde.org/kdepim/7f27bade0213acc6f78c16d930b33a699c62766f I tried your patch for the branch 'KDE/4.7' against kmail 4.7.4 but the problem is still there :-( Moreover I prepared the attached debug patch to investigate more about the problem but I don't see any output (I should have correctly configured the kmail2 debug area with kdebugdialog) Created attachment 67086 [details]
debug.patch
I retested today and it works fine. So I close it, until you give me the exact problem. I re-read code all is ok. So I don't understand why it doesn't work for you but code work here. Now I'm using kmail 4.8.0. I confirm it works, thanks! |