Bug 298083 - Duplicate message conflict due to "Mark selected message as read after" option when opening a message
Summary: Duplicate message conflict due to "Mark selected message as read after" optio...
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 21:16 UTC by piny
Modified: 2012-04-14 16:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description piny 2012-04-13 21:16:16 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0
Build Identifier: 

Scenario: 
- Main KMail window with several new, unread messages listed
- Selection of one of the new, unread messages (double click) and reading in separate window
- After a reproducible time x which is exactly (within 1 second resolution) the time defined 
  in the "Mark selected message as read after" option dialog, a conflict message appears:
  - Two identical messages are displayed in a diffs-format
  - The right message has time stamp (at bottom) of <now> in UTC format
    (in my case 2 hours before local time)
  - The left message has time stamp (at bottom) of <now> - x
- User is forced to select deletion of one of the messages 

Reproducible: Always

Steps to Reproduce:
1. Set time for "Mark selected message as read after" to x seconds
2. Open an unread email in separate sub-window (double click)
3. Conflict message appears x seconds afterward (cf. details above)
4. Repeat steps 1-3 with further unread mails with different values for x

Actual Results:  
cf. step 3 above

Expected Results:  
No conflict, ability to use the functionality "Mark selected message as read after"

OS:  Linux 3.1.9-1.4-desktop x86_64
System:  openSUSE 12.1 (x86_64)
KDE:  4.7.2 (4.7.2) "release 5"

Steps to avoid conflict message:
1. Uncheck the option "Mark selected message as read after"
or
2. Set x = 0

This (1) however either forces the user to manually mark messages as read
or (2) has them marked as read by just hovering over the entry with the arrow keys.
Comment 1 Laurent Montel 2012-04-14 13:31:16 UTC
I confirm it
Will look at
Comment 2 Laurent Montel 2012-04-14 14:14:49 UTC
Git commit 96e0aebc909496e982b627f555610dc4973fc5c1 by Montel Laurent.
Committed on 14/04/2012 at 16:13.
Pushed by mlaurent into branch 'master'.

Fix Bug 298083 - Duplicate message conflict due to "Mark selected message as read after" option when opening a message

Use a static list of item.
So don't call twice markmessage as read

FIXED-IN: 4.8.3

M  +5    -2    messageviewer/markmessagereadhandler.cpp

http://commits.kde.org/kdepim/96e0aebc909496e982b627f555610dc4973fc5c1
Comment 3 Laurent Montel 2012-04-14 14:15:38 UTC
Git commit 0cb710fa5941b3f2aa0b618358aedb7f6911fd11 by Montel Laurent.
Committed on 14/04/2012 at 16:13.
Pushed by mlaurent into branch 'KDE/4.8'.

Fix Bug 298083 - Duplicate message conflict due to "Mark selected message as read after" option when opening a message

Use a static list of item.
So don't call twice markmessage as read

FIXED-IN: 4.8.3
(cherry picked from commit 96e0aebc909496e982b627f555610dc4973fc5c1)

M  +5    -2    messageviewer/markmessagereadhandler.cpp

http://commits.kde.org/kdepim/0cb710fa5941b3f2aa0b618358aedb7f6911fd11
Comment 4 piny 2012-04-14 16:23:46 UTC
Thx for this fast fix!

Regards

PiNy