Bug 61384 - re-index folder function under RMB
Summary: re-index folder function under RMB
Status: REOPENED
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-18 05:45 UTC by Volker Kuhlmann
Modified: 2012-08-19 07:24 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Kuhlmann 2003-07-18 05:45:15 UTC
Version:           1.5.1 (using KDE 3.1.1)
Installed from:    SuSE
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB

I often find that kmail gets out of sync with its idea about a mail folder content compared with reality, when the fold is written to while kmail runs. Sorry this is unavoidable, kmail is not the only mail agent on the system. Exiting from kmail and restarting it isn't only cumbersome, it doesn't usually fix it either, one has to manually delete the folder index files. (The most convenient solution is to put a wrapper around kmail and to delete all index files on startup - not ideal either.)

The problem would be greatly reduced if there was an entry "re-scan folder" when clicking the right mouse button on a folder in the folder list window.
Comment 1 Ingo Klöcker 2003-07-18 09:02:41 UTC
Of course, the real solution is to make KMail notice changes in the folders. Nevertheless 
adding a "re-scan folder" option is a good idea. 
Comment 2 Volker Kuhlmann 2003-07-18 14:02:08 UTC
Subject: Re:  re-index folder function under RMB

> Of course, the real solution is to make KMail notice changes in the folders.

We had discussions about this before, but making this reliable seems to
be difficult (or it's not top of the list). Does kmail keep the folder
size and time stamp? This would be easy to compare and not take CPU
time whenever selecting a new folder, for mbox folders anyway. I am
certain that at least one of size and time has changed when I run into
problems. A reliable way to get kmail out of sync is to open a folder,
and then to add another msg to the same file (procmail, mutt, etc).
So far I have not lost any msg, which I rather like :)

Thanks,

Volker

Comment 3 Volker Kuhlmann 2004-09-27 05:06:12 UTC
Re-scanning the folder from the pop-up-menu when right-clicking on the folder name would solve (or rather be a very good wrokaround) for some other annoying long-running problems (68411).
Comment 4 jeff pitman 2004-11-26 05:30:49 UTC
sgi-fam and/or gamin linkage like konqueror does with fs changes would be great.  Bug #68411 should be considered a dupe wishlist item.
Comment 5 Thomas McGuire 2008-11-29 15:22:40 UTC
Assigning back bugs that weren't taken care of to kdepim-bugs.
Comment 6 Thomas McGuire 2008-11-29 15:28:29 UTC
This is now implemented for maildir and IMAP.
Comment 7 Volker Kuhlmann 2008-11-29 21:12:31 UTC
Thanks! Of course where this is really needed is for mbox, where kmail is unable to cooperate with other mail clients or procmail.

To get kmail's view of the mbox folder back to reality, one has to either modify the folder while kmail is not viewing it, wait 10 seconds, the view the folder and hope the re-indexing doesn't move the last mail to the top when it should be at the bottom (date received sorting), or delete kmail's index files while not viewing the folder or whilekmail is not running. The latter also loses some folder settings.
Comment 8 Christophe Marin 2008-12-02 12:09:56 UTC
reassign.
Comment 9 Davor Cubranic 2011-02-06 01:50:49 UTC
(In reply to comment #6)
> This is now implemented for maildir and IMAP.

I don't see any "Rescan" action for my IMAP folders. What is it called and which menu is it in? (KMail 1.13.5 and KDE 4.5.1 on KUbuntu 10.10)
Comment 10 Myriam Schweingruber 2012-08-18 08:21:29 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 11 Luigi Toscano 2012-08-18 23:51:45 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2
Comment 12 Volker Kuhlmann 2012-08-19 03:32:37 UTC
Yes, still valid. Some method of re-indexing mail files (mbox in particular, but also imap and maildir) is needed because kmail tends to get out of sync.