Version: (using KDE KDE 3.1) Installed from: Debian stable Packages OS: Linux i use kmail both at work and at home to access my work IMAP account. If at work I rearrange my mail boxes when I get home kmail has a lot of difficulty realising that something has changed. In the end I edited the kmailrc and removed all the [Folder...] entries; upon restarting kmail it refreshed the folder list and everything was fine again. It would be nice if there were either a button to force a whole tree refresh, or, given the speed with which kmail read the whole tree on startup, that this happened automatically during a mail check.
You can force a refresh by simply collapsing and expanding the account. What do you mean with "kmail has a lot of difficulty realising that something has changed"? Did you get a correct refresh on startup or not? Refreshing the tree on mailcheck isn't sensible because it's too much effort and would be slow.
When I say "has a lot of difficulty"... If kmail is left running and one of the mailboxes open, it does eventually figure out what has happened and the tree suddenly corrects to what it should be. A shutdown and restart does not seem to force a refresh, and in fact only delays the required refresh. Collapsing and expanding the tree does not force a reread of the IMAP folders. Also, refreshing the tree on mailcheck, while I would have thought it would take a long time and be a lot of effort does not appear to be. As I mentioned above, I deleted all of the sections in kmailrc that referred to the IMAP folders, upon restart kmail took about a second to recreate it's local vision of the whole tree, which is fairly large. On a dial-up line this seemed acceptable to me.
Have found a way to force the refresh. By creating a new mailbox in the account (say "Temp") the tree is instantly refreshed to show both the actual changes and the new "Temp" mailbox; the "Temp" mailbox can then be deleted leaving the tree showing the current state.
The refresh logic is identical if you add/delete a folder or start kmail. Both query the server for the current list. So it
Is it possible that kmail is being confused by the fact that I am using sub-sub-folders in IMAP i.e. I have an IMAP folder in my home area, which is the root of the mailbox. Under this I have made a number of subdirectories, under these are stored the actual mailbox files. I have noticed that the method discussed in comment #3 to force the refresh only refreshes the current depth of folder, not the subfolders. Can give you more information if you think this is significant?
The depth of folders is not important. What server are you using? Can you give me a detailed description of what changes you made and what part of these changes kmail didn't notice?
Have upgraded to kde 3.1.1 and kmail 1.5.1 and the problem seems to have been fixed.