Bug 215022

Summary: Kmail gives unkown host error when started automatically at login
Product: [Applications] kmail Reporter: Adam <adreeve>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adreeve, bjoern
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Adam 2009-11-17 21:24:10 UTC
Version:            (using KDE 4.3.1)
Installed from:    openSUSE RPMs

I have two email accounts hosted by gmail and have KMail set to be always shown in the system tray. KMail is also set to check email when started. Whenever I login KDE loads my previous session, so KMail is opened. Every time I login KMail gives two error dialogs. Both have the title "Error - KMail", and say "Unknown host pop.gmail.com". If I close the dialogs and open KMail I can check my email without any problem. Closing KMail and opening it again works fine too.
Comment 1 Torgny Nyblom 2009-11-18 13:12:14 UTC
Are you using NetworkManager?
If so is the connection opened when KMail tries to check mail?
Comment 2 Adam 2009-11-18 22:49:51 UTC
Yes I've just installed openSUSE 11.2 from the KDE live CD. How would I check that the connection is opened? That sounds like the most likely reason for this problem. For now I've just disabled the check email on startup option, but I guess I could set KDE to load a fresh session and use a script to wait a small amount of time then load KMail.

I feel that this is something a lot of people might come across though, so could KMail wait for a network connection to be opened before checking for email, or if an error occurs, wait a small amount of time and try to connect again?
Comment 3 Björn Ruberg 2009-12-12 00:55:56 UTC
You are right. This has already been wished. See duplicate.

*** This bug has been marked as a duplicate of bug 172130 ***