Bug 131827

Summary: [PATCH] Default Checkmail setting for new imap folders
Product: [Applications] kmail Reporter: Adrien Guillon <guila>
Component: IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WAITINGFORINFO    
Severity: wishlist CC: luigi.toscano, steve, winter, wstephenson
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch to newfolderdialog.cpp and kmail.kcfg

Description Adrien Guillon 2006-08-04 05:19:21 UTC
Version:            (using KDE KDE 3.5.3)
Installed from:    Gentoo Packages
OS:                Linux

When managing a large number of IMAP folders, the CPU becomes overloaded if each IMAP folder is checked for new messages.  Users are also distracted by the number of unread messages in these folders, which contribute to their new message total.  Ideally, a configuration option should exist which would allow administrators to set the default options for the creation of new folders.
Comment 1 Adrien Guillon 2006-08-04 05:23:11 UTC
Created attachment 17221 [details]
Patch to newfolderdialog.cpp and kmail.kcfg

This adds the desired functionality to KMail.
Comment 2 BJ Blanchard 2006-09-11 21:44:46 UTC
To deploy in kmailrc add under [General]:

NewFolderActDefault=false
NewFolderMailCheckDefault=false
Comment 3 Will Stephenson 2006-11-21 18:28:24 UTC
Allen: this patch would be a good candidate for the 3.5 features branch if it isn't in there already.  See the thread from August with subject: [Kde-pim] KMail: Create IMAP Folder - Default Settings for Act and Checkmail.  I suspect blabj and co. have tested this thoroughly in a production environment.
Comment 4 BJ Blanchard 2006-11-21 19:22:05 UTC
Will:  Yes this has been thoroughly tested and works "as is" for new folder creation.  

We had to make a further mod though, because of bug 133339, renaming of imap folders unsubscribes them, so our users often have to "re-subscribe".  When newly subscribing to a folder, the code just takes the default values in kmfolderimap.cpp (eg. mCheckMail = TRUE).  I didn't have alot of time to apply the same config check, so I just changed the default for mCheckMail to FALSE, which works for us.

If I or AJ get a chance, we'll look at an additional patch to handle the subscription case.
Comment 5 Allen Winter 2006-11-21 22:39:53 UTC
Ok, I'll wait for the additional patch from BJ/AJ.

Let me know when it is ready.

Comment 6 Allen Winter 2007-02-04 14:31:37 UTC
So, should I commit this patch for 3.5.7?
Or am I still waiting on the refinements?
Comment 7 Thomas McGuire 2007-03-14 14:38:41 UTC
*** Bug 142950 has been marked as a duplicate of this bug. ***
Comment 8 Myriam Schweingruber 2012-08-18 08:20:24 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 9 Luigi Toscano 2012-08-19 00:32:49 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.