Version: 1.6.82 (using KDE 3.2.3, compiled sources) Compiler: gcc version 3.2.2 OS: Linux (i686) release 2.4.19-64GB-SMP Hi! IMHO the IMAP fetch mail processes hang if sending an email occurs at the same time. lot of processes are shown and the progress bar shows "working" have to close kmail and restart to make it work again. cu ferdinand
kmail than consumes 100% CPU
the outgoing message is placed in the "sent mail of the local folder" instead of the sent mail of the IMAP folder.
Do you have any special way to reproduce this? Send a big email and check for new mail or something like that? Carsten
not realy if I sent a big mail I have to wait until the composer window closes and the main window becomes available. only then I can click "check mail", which propably is already to late to make kmail hang. BTW I use kdepim CVS against KDE 3.2.3
well currently (CVS_HEAD) kmail does not hang any more, but it takes a very long time to finsh. and it's always the process "retrieving mail from sentmail" which seems to block further processing. IMHO this delay semms not very depentant of the message size. it happens (almost?) always when I sent a mail and immediately click on an other folder to check mails there.
Ferdinand, sounds like the index of your imap sent mail folder is corrupted. Can you try setting a local sent mail folder and/or nuke the index of the imap one?
CVS commit by tilladam: Make sure an imap sent mail folder is properly kept open during move of the message from the local sent mail (where it is placed for fallback) to the imap folder by using a KMMoveCommand, which nicely encapsulates all that. This avoids the folder constantly opening and closing during processing of incoming data which makes KMail appear hung and consumes massive amounts of cpu. Ferdinand, can you confirm this fixes it? CCMAIL: 84215-done@bugs.kde.org M +6 -1 kmsender.cpp 1.218 --- kdepim/kmail/kmsender.cpp #1.217:1.218 @@ -36,4 +36,5 @@ using namespace KMime::Types; #include "kmmsgpart.h" #include "protocols.h" +#include "kmcommands.h" #include <mimelib/mediatyp.h> @@ -350,5 +351,9 @@ void KMSender::doSendMsg() return; } - if (imapSentFolder) imapSentFolder->moveMsg(mCurrentMsg); + if (imapSentFolder) { + // Does proper folder refcounting and message locking + KMCommand *command = new KMMoveCommand( imapSentFolder, mCurrentMsg ); + command->start(); + } default: break;
Hmm! Something strange happend - the first mail I tried stayed in the local and kmail crashed after this it seems to work as expected without the blocking "check sent mail" please let me observe this a little bit more
Created attachment 6873 [details] backtrace of the crash sent an email as first action in kmail -
see attachment
As first action? You mean right after startup? Do you have the imap account with the sent mail folder expanded at that point? Was it still listing folders, maybe? Was an imap folder open, if so, on the same account?
> ------- Additional Comments From adam kde org 2004-07-27 15:10 ------- > As first action? You mean right after startup? Yes > Do you have the imap account > with the sent mail folder expanded at that point? Yes > Was it still listing folders, maybe? No > Was an imap folder open, if so, on the same account? Yes - I have set up kmail to open the "inbox" of my imap account an startup.
> ------- Additional Comments From adam kde org 2004-07-27 15:10 ------- BTW, it crashes also if I move to my KDE-Bugs-folder and click answer
But it does not crash, if I click "send again" in my "lokal-sent-mail anyhow, if it crashes, than only at the very beginning after startup.
IMHO the problem is solved now. it does not and does not hang any more.