Bug 67013 - closing kontact doesnt trigger close jobs
Summary: closing kontact doesnt trigger close jobs
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: mail (show other bugs)
Version: CVS
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 89721 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-01 20:51 UTC by Thomas Vollmer
Modified: 2011-12-22 15:31 UTC (History)
3 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 Thomas Vollmer 2003-11-01 20:51:48 UTC
Version:           CVS HEAD from 29.10.2003 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.2 
OS:          Linux

Hi,

when closing kontact all configured close jobs like kmails remove old mails and compact folders must start. The same is valid for knode.

This doesnt happen when running from kontact.

Thomas
Comment 1 Daniel Molkentin 2003-11-01 21:44:16 UTC
KMail bug.
Comment 2 Thomas Vollmer 2003-11-02 08:28:04 UTC
Subject: Re:  closeing kontact doent trigger close jobs

On Saturday 01 November 2003 21:44, Daniel Molkentin wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>      
> http://bugs.kde.org/show_bug.cgi?id=67013     
> molkentin@kde.org changed:
> 
>            What    |Removed                     |Added
> ---------------------------------------------------------------------
>-------
 Status|UNCONFIRMED                 |NEW
>       everconfirmed|0                           |1
>             Product|kontact                     |kmail
> 
> 
> 
> ------- Additional Comments From molkentin@kde.org  2003-11-01 21:44
> -------
 KMail bug.

Dont forget that knode has the same problem.

Thomas
Comment 3 Volker Krause 2003-12-02 18:03:53 UTC
seems to be fixed for knode since 2003-11-24, see #67626.
Comment 4 Volker Krause 2003-12-04 16:19:58 UTC
Here is a simple patch that fixes this problem for me.
But I have to say that I haven't a real idea of the kmail internals, this is just the result of some grep-ing through kmail code and might be completely wrong.

Index: kmail_part.cpp
===================================================================
RCS file: /home/kde/kdepim/kmail/kmail_part.cpp,v
retrieving revision 1.42
diff -u -r1.42 kmail_part.cpp
--- kmail_part.cpp	14 Oct 2003 09:46:47 -0000	1.42
+++ kmail_part.cpp	4 Dec 2003 15:13:37 -0000
@@ -151,7 +151,8 @@
   kmkernel->dumpDeadLetters();
   kmkernel->setShuttingDown( true ); // Prevent further dumpDeadLetters calls
   mainWidget->destruct();
-  kmkernel->notClosedByUser();
+//   kmkernel->notClosedByUser();
+  kmkernel->cleanup();
   delete kmkernel;
   KMail::cleanup();
 }
Comment 5 Don Sanders 2003-12-24 03:34:56 UTC
Subject: closing kontact doesnt trigger close jobs

I've disabled KMail 'jobs' that block Kontact on exit as I consider 
such solutions of too poor quality to be acceptable for Kontact.

Instead 'jobs' such as expiring old messages and compacting folders 
should be done in the background while Kontact is running.

Comment 6 Ingo Klöcker 2004-06-06 12:03:34 UTC
This is fixed for KMail (for KDE 3.3). Message expiration and folder compaction are now run in the background while KMail is running. Only empty trash is still done on exit. And that's now also done when Kontact is closed.
Comment 7 Tom Albers 2004-10-17 19:19:02 UTC
*** Bug 89721 has been marked as a duplicate of this bug. ***
Comment 8 rh 2011-12-22 15:31:13 UTC
I was working in my Skype-Account 
I was searching with an email-Adress in the general adressbook of Skype. I found the account and I saved it. When I saved this occurs and I even dont noticed, that it was kmail what crashed!

THE DESKTOP DIDnt CRASH at ALL!
I continued to work!

- I dont work with kmail! - I am working with Thunderbird and online Mail. 

But I have an other problem in KDE - I can never go back in the Start-Menu- because the back-string/bottom is never there! Thats really annoying!