Bug 414839

Summary: Folder expiration not automatic
Product: [Applications] kmail2 Reporter: Thiago Macieira <thiago>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: auxsvr, montel
Priority: NOR    
Version: 5.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.13.0
Sentry Crash Report:

Description Thiago Macieira 2019-12-04 22:14:51 UTC
SUMMARY
I have two folders set to expire all emails in 30 days. There are emails in the folder older than that, the expiration is not happening automatically as it used to.

If I got to the Folder Properties dialog and click "Save Settings and Expire Now", then KMail does expire.

STEPS TO REPRODUCE
1. Move some old emails to a folder
2. Set an expiry timeline shorter than the age of those emails
  (note: I'm using Move expired messages to folder option)
3. Wait 24 hours

OBSERVED RESULT
Emails are still in the folder.

EXPECTED RESULT
Emails got expired.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20191128
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.1
Akonadi: 5.12.3

ADDITIONAL INFORMATION
Comment 1 Laurent Montel 2019-12-05 15:57:04 UTC
I will investigate soon
Comment 2 Laurent Montel 2019-12-06 07:51:00 UTC
Git commit 50c4c271080a144fd645892081c0f623aee2e6b2 by Laurent Montel.
Committed on 06/12/2019 at 07:50.
Pushed by mlaurent into branch 'release/19.12'.

Fix Bug 414839 - Folder expiration not automatic

FIXED-IN: 5.13.0

M  +3    -3    src/folder/foldercollectionmonitor.cpp

https://commits.kde.org/mailcommon/50c4c271080a144fd645892081c0f623aee2e6b2