Bug 439501

Summary: Mail auto-prune time for read and unread get switched on save
Product: [Applications] kmail2 Reporter: Tobias C. Berner <tcberner>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: dialog screenshot

Description Tobias C. Berner 2021-07-05 05:51:13 UTC
Created attachment 139857 [details]
dialog screenshot

The auto-prune times for mails can be set for read and unread mails. The values get stored to the wrong fields.


STEPS TO REPRODUCE
1. Open the prune settings for a folder
2. Set for example "5" for the "read" and "10" for the "unread" ones, close dialog to save.
3. Reopen the dialog.

OBSERVED RESULT
The values are switched.


EXPECTED RESULT
The values appear as entered.

SOFTWARE/OS VERSIONS 
FreBSD/KDE Plasma: 14-CURRENT/5.22.1 
KDE Plasma Version: 5.22.1 
KDE Frameworks Version: 5.83.0
KMail version: 5.17.2 (21.04.2)
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Screenshot of the dialogs on save/load (also attached):
https://people.freebsd.org/~tcberner/images/kmail_bug.png
Comment 1 Laurent Montel 2021-07-05 05:55:42 UTC
I confirm it. I will fix it soon.
Comment 2 Laurent Montel 2021-07-05 06:04:55 UTC
Git commit e0e7e702df21ac3b0b16b94f3871c0ddbe53e962 by Laurent Montel.
Committed on 05/07/2021 at 06:03.
Pushed by mlaurent into branch 'release/21.04'.

Bug 439501 - Mail auto-prune time for read and unread get switched on

save

M  +2    -2    src/collectionpage/collectionexpirypage.cpp

https://invent.kde.org/pim/mailcommon/commit/e0e7e702df21ac3b0b16b94f3871c0ddbe53e962
Comment 3 Tobias C. Berner 2021-07-05 06:24:40 UTC
Awesome :) -- thanks for the quick fix!