Version: (using KDE KDE 3.0.4) Installed from: RedHat RPMs OS: Linux When deleting a message from my inbox the message stays in my inbox mbox file. I compacted all folders afterwards and my home directory's are not mounted via nfs. Compactable=true on all folders in my kmailrc and my trash folder is empty. I have tried re-opening kmail. The problem is all my user's kmail inbox's are growing huge when they have no messages in there. If i delete the .inbox.index the deleted messages come back to the inbox. How can i get these files out of the inbox mbox file?
I have this same problem on a recent CVS from the KDE_3_1_BRANCH.
Subject: Re: New: Compacting does not remove deleted emails On Wednesday 08 January 2003 20:03, Joshua Trimm wrote: > How can i get these files out of the inbox mbox file? The following should work: - Create a temporary backup folder - Move all message from the Inbox that you want to keep to the backup folder - Exit KMail - Delete ~/Mail/inbox and ~/Mail/.inbox.index* - Start KMail; the Inbox will be recreated - Move all message from the backup folder back to the Inbox - Delete the backup folder BTW, you should use this opportunity to convert your inbox from mbox format to maildir format (maildir is the recommend format since it's much more robust than mbox and compaction isn't necessary with maildir since each message is in a file of its own). In order to convert your inbox from mbox format to maildir format all you have to do (additionally to the above steps) is to switch the default folder format to maildir (in Settings->Configure KMail...->Folders).
This problem is not specific to inboxes. Compact usually does nothing for me on mbox folders. This is especially problematic since I have spam filed in a folder, I remove valid emails from the folder and compact it, and want to report the rest to Razor. Since I have no way of compacting the folder, I can't remove the valid email so I cannot report to Razor. It used to be that at least "empty folder" actually emptied the folder, so you could "fix" the problem from within kmail. Above workaround (conversion to maildir format) is the only solution I know of. But.... why bother even HAVING a "compact folder" action that does absolutely nothing :-)
Subject: Re: Compacting does not remove deleted emails I just want to point out that in general compacting works. But sometimes KMail turns off compaction for a folder because it "thinks" that the index of this folder and its contents are out-of-sync. In this case compaction is disabled in order to prevent a trashed folder. You can check whether this is the case by looking at KMail's configuration file (usually in ~/.kde/share/config/kmailrc). If the settings of a folder include "Compactable=false" then KMail disabled compaction because of the aforementioned reason. You can try to change it to "Compactable=true" (while KMail isn't running).
I retract my claim that compacting never works. Before I converted my Inbox to maildir, I looked at the size of the mbox and it had obviously been compacted pretty efficiently. Ingo's comment above reveal the true problem I was having. I was procmailing my spam into a separate directory, and then using a shell script periodically to insert them into a kmail-controlled mbox so I could verify the spams before reporting them. And then I would invoke my reporting script which would report and delete the emails in the spam mbox. I guess the workaround is either using maildirs for this kind of situation (external programs trying to "help" kmail) or wait until kmail has a system by which we can invoke an external spam-reporting system.
*** Bug 59273 has been marked as a duplicate of this bug. ***
*** Bug 59371 has been marked as a duplicate of this bug. ***
so it works in general
*** Bug 83773 has been marked as a duplicate of this bug. ***