Bug 316888

Summary: Folder retrieval options are not preserved across reboot
Product: [Applications] kmail2 Reporter: Lastique <andysem>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: bugz57, kdenis
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lastique 2013-03-17 08:42:10 UTC
I have two IMAP mail accounts configured in kmail. When I set folder retrieval options for each of the accounts the settings are saved for the current session but are lost after reboot. In particular I set to keep message bodies for 10080 minutes (1 week). The folders in the accounts are configured to inherit parameters from the parent folder.


Reproducible: Always

Steps to Reproduce:
1. Open kmail and select an email account in the folder list.
2. Select "Folder Properties" in the context menu, go to the "Retrieval" tab.
3. Select "Retrieve message bodies on demand", type 10080 in the "Keep message bodies locally for" field.
4. Press OK and reboot.
5. After reboot open kmail and go to the same tab.
Actual Results:  
The retrieval options are back to the default.

Expected Results:  
The retrieval options should be saved as I set them.
Comment 1 Volker Kuhlmann 2013-08-15 00:25:08 UTC
Problem also occurs with openSUSE 12.3 KDE 4.10.5.
I find this annoying and a waste of bandwidth - if I have downloaded it once, I don't need to download it again!

Btw the reboot is not necessary. Just quitting kmail is enough; when starting it again the setting is reverted from "never" to 60 minutes.
Comment 2 Denis Kurz 2016-09-24 18:03:47 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 3 Lastique 2016-09-25 01:59:35 UTC
In Kubuntu 16.04, Kmail 5.1.3, the retrieval options are saved, but I can't enter more than 99 minutes into the "Retrieve message bodies on demand" option. I consider this a bug because I want to keep recent messages (e.g. up to a few weeks old) locally for faster access, and 1.5 hour upper limit is just impractical.

Also, opening the folder properties seems to block on the IMAP resource, since because of https://bugs.kde.org/show_bug.cgi?id=364802 I'm almost not able to open folder properties on one of my IMAP accounts - the dialog window either appears with a long delay or does not appear at all.
Comment 4 Laurent Montel 2016-09-25 05:40:37 UTC
Git commit 9376f6317bc0c0ee60e45f3474280499771b33f4 by Montel Laurent.
Committed on 25/09/2016 at 05:40.
Pushed by mlaurent into branch 'master'.

increase maximum minutes for "Retrieve message bodies on demand" option

M  +60   -39   src/widgets/cachepolicypage.ui

http://commits.kde.org/akonadi/9376f6317bc0c0ee60e45f3474280499771b33f4
Comment 5 Lastique 2016-09-25 09:37:02 UTC
(In reply to Laurent Montel from comment #4)
> Git commit 9376f6317bc0c0ee60e45f3474280499771b33f4 by Montel Laurent.
> Committed on 25/09/2016 at 05:40.
> Pushed by mlaurent into branch 'master'.
> 
> increase maximum minutes for "Retrieve message bodies on demand" option
> 
> M  +60   -39   src/widgets/cachepolicypage.ui
> 
> http://commits.kde.org/akonadi/9376f6317bc0c0ee60e45f3474280499771b33f4

Thank you for the fix. Do I understand correctly that the new limit is 9999 minutes, just under 7 days? If so, I think it is still too short. Could the limit be removed at all? Or at least be raised to a month or so?
Comment 6 Justin Zobel 2022-10-30 00:37:28 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 7 Lastique 2022-10-30 09:04:52 UTC
I'm not using KMail anymore.