Start new session of Kmail or Kontact

Hello, friends!

When you use Kmail or Kontact and you close it (or it crashes) next time you open it, it restores all other previously used windows (e.g. previously opened emails, mail composer windows, etc.). So you can say it restores previous session.
I would like to know HOW can launch kmail or kontact without restoring previously used windows?

I got some buggy email, when I tried to reply to it, it hanged my kontact and CPU usage was about 100%.
I killed it and now each time I open it (even after reboot and aconadi clean-ups) it just doesn’t start and gets my CPU to 100%.
That’s obviously because it tries to restore previous session with that buggy email, that I tried to reply to.

Thats all console output I get when starting kmail

Enchant dict for "ru" 0xc5d710 
kmail2(4836) MessageViewer::ObjectTreeParser::defaultHandling: no htmlWriter() 

Look forward to your help!

P.S.
Don’t want to nuke all settings and cached emails if possible…

On Wed, 17 Oct 2012 07:16:01 GMT, Kolyanoid
<Kolyanoid@no-mx.forums.opensuse.org> wrote:

>
>Hello, friends!
>
>When you use Kmail or Kontact and you close it (or it crashes) next
>time you open it, it restores all other previously used windows (e.g.
>previously opened emails, mail composer windows, etc.). So you can say
>it restores previous session.
>I would like to know HOW can launch kmail or kontact without restoring
>previously used windows?
>
>I got some buggy email, when I tried to reply to it, it hanged my
>kontact and CPU usage was about 100%.
>I killed it and now each time I open it (even after reboot and aconadi
>clean-ups) it just doesn’t start and gets my CPU to 100%.
>That’s obviously because it tries to restore previous session with that
>buggy email, that I tried to reply to.
>
>Thats all console output I get when starting kmail
>
>Code:
>--------------------
> Enchant dict for “ru” 0xc5d710
> kmail2(4836) MessageViewer::ObjectTreeParser::defaultHandling: no htmlWriter()
>
>--------------------
>
>
>Look forward to your help!
>
>P.S.
>Don’t want to nuke all settings and cached emails if possible…

Hmm. There is a setting for KDE to restore previous session but this may
be specific to Kmail & Kontact.

Start with a backup.

Then try renaming .kde to something else and logout and login.
See if kmail will start then.

Also try creating a new user, set kde & kmail to not restore session.
dig through .kde to find those settings. Copy them into your own .kde,
you might have to use a direct console for this (no KDE running).

HTH

?-)