Bug 164739 - Account wizard creates too many SMTP accounts
Summary: Account wizard creates too many SMTP accounts
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.9.52
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-23 11:57 UTC by Malte S. Stretz
Modified: 2008-08-26 19:53 UTC (History)
1 user (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 Malte S. Stretz 2008-06-23 11:57:08 UTC
Version:           1.9.52 (using 4.00.83 (KDE 4.0.83 (KDE 4.1 Beta2), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-19-generic

I just started KMail for the first time on a new account.  The wizard appeared and I entered all infos.  After I pressed Finish, I was asked wether I want to store the password in KWallet and I confirmed that.  The question dialog disappeared and some other window appeared for a jiffy and immediately disappeared again.  No KMail afterwards :(  Also no DrKonqi.

When I started KMail again, my Identity was set up and two (!) SMTP accounts but none for Receiving.

Debug output:

mss@TreeHouse:~/.kde4/share/config$ rm kmailrc
mss@TreeHouse:~/.kde4/share/config$ which kmail
/opt/kde4/4/bin/kmail
mss@TreeHouse:~/.kde4/share/config$ kmail
kmail(7631) KMail::lockOrDie: oldPid= -1
kmail(7631) KMKernel::KMKernel:
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton ( 0x815db28 )
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::readConfig: KCoreConfigSkeleton::readConfig()
kmail(7631)/kdepimlibs (kpgp) Kpgp::Module::Module: creating new pgp object
kmail(7631)/kdepimlibs (kpgp) Kpgp::Module::checkForPGP: Kpgp: gpg found
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton ( 0x817aa68 )
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "507620759"
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::readConfig: KCoreConfigSkeleton::readConfig()
kmail(7631): Couldn't start kwalletd:  "Service 'kded/kwalletd.desktop' is malformatted."

kmail(7631) KWalletDLauncher::getInterface: The kwalletd service is still not registered
kmail(7631) KMKernel::init: foldersPath (from config): ""
kmail(7631) KMKernel::init: foldersPath (after transferMail): "/home/mss/.kde4/share/apps/kmail/mail"
kmail(7631) KMKernel::identityManager:
kmail(7631) KMFilterMgr::KMFilterMgr: pPopFilter set
kmail(7631)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/mss/.kde4/share/apps/kmail/mail/.outbox.index" , "r+") == mIndexStream ==  0x819f408
kmail(7631)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/mss/.kde4/share/apps/kmail/mail/.drafts.index" , "r+") == mIndexStream ==  0x81a5d60
kmail(7631)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/mss/.kde4/share/apps/kmail/mail/.templates.index" , "r+") == mIndexStream ==  0x819fa60
kmail(7631) KMailApplication::newInstance:
kmail(7631) KMKernel::openReader:
kmail(7631)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/mss/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x85a8488
kmail(7631)/kmail (storage internals) KMFolderMaildir::close: fclose(mIndexStream =  0x85a8488 )
kmail(7631)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/mss/.kde4/share/apps/kmail/mail/.sent-mail.index" , "r+") == mIndexStream ==  0x85af330
kmail(7631)/kmail (storage internals) KMFolderMaildir::close: fclose(mIndexStream =  0x85af330 )
kmail(7631)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/mss/.kde4/share/apps/kmail/mail/.trash.index" , "r+") == mIndexStream ==  0x85a9498
kmail(7631)/kmail (storage internals) KMFolderMaildir::close: fclose(mIndexStream =  0x85a9498 )
kmail(7631)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from  "/var/tmp/kdecache-mss/ksycoca4"
kmail(7631)/kmail (storage internals) KMFolderIndex::openInternal: KDE_fopen(indexLocation()= "/home/mss/.kde4/share/apps/kmail/mail/.inbox.index" , "r+") == mIndexStream ==  0x876cd68
kmail(7631)/kmail (storage internals) KMFolderMaildir::close: fclose(mIndexStream =  0x876cd68 )
kmail(7631) KMail::Vacation::Vacation: Vacation: found url " "" "
kmail(7631)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-mss/kmailuo7631.slave-socket"
kmail(7631)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///opt/kde4/4/share/apps/kdeui/about/kde_infopage.css")
kmail(7631)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-mss/kmailDj7631.slave-socket"
kmail(7631)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///opt/kde4/4/share/apps/kmail/about/kmail.css")
kmail(7631)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-mss/kmailse7631.slave-socket"
kmail(7631)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///opt/kde4/4/share/apps/kdeui/about/box-top-left.png")
kmail(7631)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-mss/kmailKS7631.slave-socket"
kmail(7631)/kio (Slave) KIO::Slave::createSlave: createSlave "file" for KUrl("file:///opt/kde4/4/share/apps/kdeui/about/box-top-right.png")
kmail(7631)/kio (KIOConnection) KIO::ConnectionServer::listenForRemote: Listening on  "local:/tmp/ksocket-mss/kmailNh7631.slave-socket"
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::KCoreConfigSkeleton: Creating KCoreConfigSkeleton ( 0x8636a80 )
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "975358277"
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::readConfig: KCoreConfigSkeleton::readConfig()
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTest::start: 0x87fb1d8
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::Socket:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::Socket:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::reconnect: Connecting to: "mail.layer0.de" : 25
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::reconnect: Connecting to: "mail.layer0.de" : 465
kmail(7631)/kdepimlibs (mailtransport) MailTransport::SocketPrivate::slotConnected:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::SocketPrivate::slotConnected: normal connect
kmail(7631)/kdepimlibs (mailtransport) MailTransport::SocketPrivate::slotSocketRead:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::slotReadNormal: Stage 0 , Mode 0
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::sendInitialCapabilityQuery:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::sendInitialCapabilityQuery: Hostname for EHLO is "TreeHouse.localnet"
kmail(7631)/kdepimlibs (mailtransport) MailTransport::SocketPrivate::slotSocketRead:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::slotReadNormal: Stage 1 , Mode 0
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::handleSMTPIMAPResponse: No authentication possible
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::slotReadNormal: Trying TLS...
kmail(7631)/kdepimlibs (mailtransport) MailTransport::SocketPrivate::slotSocketRead:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::slotReadNormal: Stage 43 , Mode 2
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::startTLS: "normal"
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::slotTlsDone:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::slotReadNormal: Stage 0 , Mode 2
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::sendInitialCapabilityQuery:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::sendInitialCapabilityQuery: Hostname for EHLO is "TreeHouse.localnet"
kmail(7631)/kdepimlibs (mailtransport) MailTransport::SocketPrivate::slotSslErrors:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::SocketPrivate::slotSocketRead:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::slotReadNormal: Stage 1 , Mode 2
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::parseAuthenticationList: ("LOGIN", "PLAIN") (0, 1)
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::handleSMTPIMAPResponse: For type 2 , we have: (1)
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::finalResult: Modes: QSet(0, 2)
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::finalResult: Capabilities: QSet()
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::finalResult: Normal: ()
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::finalResult: SSL: ()
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTestPrivate::finalResult: TLS: (1)
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: KCoreConfigSkeleton::writeConfig()
kmail(7631): Couldn't start kwalletd:  "Service 'kded/kwalletd.desktop' is malformatted."

kmail(7631) KWalletDLauncher::getInterface: The kwalletd service is still not registered
kmail(7631)/kdeui (KNotification) KNotification::slotReceivedId: 0
kmail(7631)/kdeui (KNotification) KNotification::close: 0
kmail(7631)/kdeui (KNotification) KNotification::~KNotification: -2
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::readConfig: KCoreConfigSkeleton::readConfig()
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::~Socket:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::~Socket:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::ServerTest::start: 0x89196a8
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::Socket:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::Socket:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::reconnect: Connecting to: "mail.layer0.de" : 143
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::reconnect: Connecting to: "mail.layer0.de" : 993
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::~Socket:
kmail(7631)/kdepimlibs (mailtransport) MailTransport::Socket::~Socket:
kmail(7631) KMMainWin::~KMMainWin: Closing last KMMainWin: stopping mail check
kmail(7631)/kparts KParts::Part::slotWidgetDestroyed: KPart::slotWidgetDestroyed(), deleting part  "mViewer"
kmail(7631)/khtml (part) KHTMLPart::~KHTMLPart: KHTMLPart(0x81ef888, name = "mViewer")
kmail(7631)/kparts KParts::PartManager::setActivePart: KParts::PartManager(0x855e780, name = "khtml part manager")  emitting activePartChanged  QObject(0x0)
kmail(7631) KMail::Vacation::~Vacation: ~Vacation()
kmail(7631)/kmail (storage internals) KMFolderMaildir::close: fclose(mIndexStream =  0x81a5d60 )
kmail(7631)/kmail (storage internals) KMFolderMaildir::close: fclose(mIndexStream =  0x819f408 )
kmail(7631)/kmail (storage internals) KMFolderMaildir::close: fclose(mIndexStream =  0x819fa60 )
kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: KCoreConfigSkeleton::writeConfig()
mss@TreeHouse:~/.kde4/share/config$ kmail(7631)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::readConfig: KCoreConfigSkeleton::readConfig()
kmail(7631) KMKernel::~KMKernel:
Comment 1 FiNeX 2008-06-23 14:40:28 UTC
Funny, I've... let me count... 24 sending accounts, but I've got no crash.

1) start kmail with a clean account
2) set an IMAP account with the wizard
3) press "finish"

Kmail will open a small window with "checking for supported security capabilites of..."

This window doesn't disappear, even after a lot of minutes. The "finish" button is not disabled, so you can click on it. Each time you click on "finish" you'll add an account. I've clicked, more than one time (24)... :-)

I can also (fortunatly) click on cancel. This will close the wizard and start kmail (bad configured).

Please Malte, give your vote to this bug too :-)
Comment 2 Thomas McGuire 2008-06-23 17:16:24 UTC
KMail disappearing for no reason is probably the same as bug 163479.
So the remaining problem in this bug report is that the wizard creates too many SMTP accounts.
Comment 3 FiNeX 2008-06-23 17:19:36 UTC
And about the infinite "checking for supported security capabilites of..." ?
Comment 4 Thomas McGuire 2008-06-23 17:23:56 UTC
> And about the infinite "checking for supported security capabilites of..." ?

That as well, yeah.
Comment 5 Torgny Nyblom 2008-06-23 18:19:50 UTC
< CIA-29> tnyblom * r823501 kmail/trunk/KDE/kdepim/kmail/accountwizard.cpp: 
< CIA-29> Disable the finish button when clicked, to prevent user from pressing it
< CIA-29> repeatedly.

Part of the issue.
Comment 6 Malte S. Stretz 2008-06-23 18:32:14 UTC
I'm pretty sure I clicked it only once.  The TLS window disappeared within a jiffy and so did the wizard.
Comment 7 Torgny Nyblom 2008-06-24 05:59:34 UTC
The keyword was "part" :)
There is more bugs left in that code. When I played around last night I noticed that the 10 + 10 s timeout for the server check wasn't working so I had to wait for the network stack to timeout before the check window disappeared. Somehow I got three identities (probably my fault) and two sending as well as receiving accounts. I'll dig deeper into this tonight.
Comment 8 Torgny Nyblom 2008-07-13 13:55:58 UTC
SVN commit 831824 by tnyblom:

IMAP needs a transaction number for each command.

Manual merge of r831817 from trunk

CCBUG:164739


 M  +3 -1      servertest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=831824
Comment 9 Malte S. Stretz 2008-07-16 21:22:58 UTC
FYI: Yesterday or so I tried the wizard again and only got a single account of each, as expected :)  Though it still might do some odd things about detecting the correct authentication/encryption method, see bug 166621.
Comment 10 Torgny Nyblom 2008-08-26 19:53:54 UTC
Marking as fixed as issue seems to have been corrected (comment 9).
Please reopen if issue should reappear.