Version: (using KDE KDE 3.5.3) Installed from: NetBSD pkgsrc Compiler: gcc 3.3.3 OS: NetBSD When searching imap subfolders (may happen with local folders as well) it appears that the local index file and cache file for each folder is opened but never closed so if searching a sufficiently large folder hierarchy its possible to exhaust the max number of file descriptors the process is allowed and then kmail gets confused and crashes.
Created attachment 16871 [details] lsof output after several searches This lsof output show the open file descriptors of a kmail process after having performed a search (for subject contains foo) in the "Old" folder hierarchy followed by a search in the "isocnz" folder hierarchy. I believe that the files that remain open match folders where search results are found.
*** This bug has been marked as a duplicate of bug 160968 ***