Bug 174940 - Restore unchanged windows only ones
Summary: Restore unchanged windows only ones
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: GUI (show other bugs)
Version: 1.10.3
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-12 12:40 UTC by jamese
Modified: 2012-08-19 00:17 UTC (History)
2 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 jamese 2008-11-12 12:40:33 UTC
Version:           1.10.3 (using KDE 4.1.2)
OS:                Linux
Installed from:    Ubuntu Packages

Hi

A strange event.. (this is not the bug) I went to check my emails with Kmail (via Kontact) and noticed my USB keyboard was resting on my laptop keyboard so I picked up the USB keyboard and almost immediately hundreds of Kmail windows were spawned... each looking to be a reply message window to a message located in one of my IMAP mailboxes.
I don't know if the USB keyboard was resting on a laptop key (possibly the "R" ?) and releasing the keyboard caused Kmail to launch masses of windows,

I was able to successfully kill the Kontact process to remove all the windows by switching to another run level.
When I restarted Kontact, the same thing happened - got about 600 windows on the screen. It obviously was launching the windows from saved session... killed the Kontact process again.
I did some Googling and the closest I got was to remove the kmailrc and kontactrc files (I moved these aside).
Once I moved them aside, I restarted Kontact and the same thing happened just that the windows were much smaller and neatly tiled on the screen, instead of being full screen... killed the Kontact process again.

I tried su-ing to another system user and launching Kontact via that shell under the new user - got an error message:
$ su otheruser
$ kontact
<unknown program name>(13224)/: KUniqueApplication: Cannot find the D-Bus session server

<unknown program name>(13223)/: KUniqueApplication: Pipe closed unexpectedly.

(Ctrl-D)

Did some more Googling and could only find this link:
http://linux.derkeiler.com/Mailing-Lists/Fedora/2005-01/2889.html
Which kind of describes what occurred.

Frustrated, I tried launching Kontact again via the Menu and it launched ok.. but with no IMAP accounts!
I checked my .kde/share/apps/kmail/imap and noticed there were no entries. Luckily they were just IMAP accounts so I recreated them in Kmail and everything is back to normal.
Would moving aside a kmailrc remove the IMAP account details (although my Sending accounts were fine) ?


Unfortunately those are the steps involved in what happened - can't be much more descriptive than that! I don't really want to try an dreproduce it either as my system load hit 4.

What I'd expect to happen:
* have a way to start kmail up without having a previous session respawning (or document it if it already exists)
* avoid removing IMAP accounts without prompting...

Thanks!
Comment 1 Jaime Torres 2008-11-13 12:26:11 UTC
This is an exceptional situation, normally nobody will compose 600 mails simultaneously (even the spamers).

I propose a solution (I do not know how complicated it is to implement :-():

If the komposer window has been modified from its creation, respawn it in the new konctact session, but if it was not modified, just respawn one.

For the second problem, IMAP accounts removed when kmailrc and kontactrc are removed:

I've followed your steps (except the su otheruser):
move aside kmailrc and kontactrc
start konctact
close kontact
copy back kmailrc and kontactrc

 and the imap accounts are still there in kmail 1.10.90 (svn trunk r882080).
Comment 2 jamese 2009-01-15 13:01:26 UTC
My IMAP accounts disappeared again... I updated to 4.2 RC2 (Kubuntu packages) in order to test it out and on launch of Kontact, all but one of my IMAP accounts were missing.

It would be interesting to find out under what conditions IMAP accounts are removed without that action being requested by the user.

I've since added the IMAP accounts back in manually.
Comment 3 Jaime Torres 2009-01-15 13:12:35 UTC
How many free space do you have in / and /home?

There are already bugreports of imap accounts lost when the free space is close to 0.
Comment 4 jamese 2009-01-17 01:10:13 UTC
Hi Jaime

One partition...

$ df
Filesystem           1K-blocks Used Available Use% Mounted on
/dev/sda1            185921652  52641216 123910528  30% /


It's happened the last two major Kontact updates now.
Comment 5 Björn Ruberg 2010-02-02 00:58:59 UTC
Addapted title and made a wish out of this
Comment 6 Myriam Schweingruber 2012-08-18 08:34:24 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 7 Luigi Toscano 2012-08-19 00:17:47 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.