Bug 439501 - Mail auto-prune time for read and unread get switched on save
Summary: Mail auto-prune time for read and unread get switched on save
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: folders (show other bugs)
Version: unspecified
Platform: Other FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-05 05:51 UTC by Tobias C. Berner
Modified: 2021-07-05 06:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
dialog screenshot (168.74 KB, image/png)
2021-07-05 05:51 UTC, Tobias C. Berner
Details

Note You need to log in before you can comment on or make changes to this bug.
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!