Bug 514012

Summary: Mailbox creation fails silently
Product: [Applications] kmail2 Reporter: Rainer Dorsch <ml>
Component: generalAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version First Reported In: 6.6.0 (25.12.0)   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rainer Dorsch 2025-12-31 15:29:39 UTC
SUMMARY
I tried to create an IMAP and SMTP account in kmail for a new user (i.e. only local folders exist in kmail). I can enter all data, there is no error indication. Sending mails works fine, but in the folder view, the IMAP account and folders are not shown.

STEPS TO REPRODUCE
1. Open Kmail Settings
2. Add Mailbox ("Empfang" for German locale)
3. Fill in data

OBSERVED RESULT

No indication of an error and but IMAP account and folders are not shown in folder window.

The IMAP server (dovecot) side shows entries like this one:
Dec 31 15:57:58 contabo.bokomoko.de dovecot[1235830]: imap-login: Login: user=<freya>, method=PLAIN, rip=2a02:8070:8982:4ee0:7e83:34ff:febe:2bae, lip=2a02:c207:3005:4197::1, mpid=2887427, TLS, session=<7IOws0BHLJ8qAoBwiYJO4H6DNP/+viuu>
Dec 31 15:58:25 contabo.bokomoko.de dovecot[1235830]: imap(freya)<2887427><7IOws0BHLJ8qAoBwiYJO4H6DNP/+viuu>: Disconnected: Logged out in=136 out=1372 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0


cmdline output on the client (kmail) side shows for me no obvious issue:

$ kmail                                                                                                                                                                                                      255 ✘  1d 3h 35m 29s  
org.kde.pim.pimcommonactivities: Plasma activities is not running:  1
libva error: /usr/lib/dri/i965_drv_video.so init failed
kf.xmlgui: Index  26  is not within range (0 -  25 )
kf.xmlgui: Index  28  is not within range (0 -  25 )
qt.core.qobject.connect: QObject::connect(KIdentityManagementCore::IdentityActivitiesAbstract, KIdentityManagementCore::IdentityTreeSortProxyModel): invalid nullptr parameter
qt.core.qobject.connect: QObject::connect(MailTransport::TransportActivitiesAbstract, MailTransport::TransportSortProxyModel): invalid nullptr parameter
QWidget::setLayout: Attempting to set QLayout "" on QGroupBox "", which already has a layout
kf.configwidgets: A widget named "kcfg_MinimumFontSize" was found but there is no setting named "MinimumFontSize"
kf.configwidgets: A widget named "kcfg_AccessKeyEnabled" was found but there is no setting named "AccessKeyEnabled"
kf.configwidgets: A widget named "kcfg_ShrinkQuotes" was found but there is no setting named "ShrinkQuotes"
kf.configwidgets: A widget named "kcfg_ShowExpandQuotesMark" was found but there is no setting named "ShowExpandQuotesMark"
kf.configwidgets: A widget named "kcfg_CollapseQuoteLevelSpin" was found but there is no setting named "CollapseQuoteLevelSpin"
gpg.qgpgme: found no group for entry verbose of component "tpm2daemon"
gpg.qgpgme: found no group for entry quiet of component "tpm2daemon"
gpg.qgpgme: found no group for entry debug-level of component "tpm2daemon"
gpg.qgpgme: found no group for entry log-file of component "tpm2daemon"
write activities settings  enabled:  false activities:  QList()
kf.xmlgui: Index  30  is not within range (0 -  25 )
org.kde.pim.akonadicore: not referenced  20
qrc:/qt/qml/org/kde/pim/accountwizard/qml/ConfigurationSelectionPage.qml:13:1: QML ConfigurationSelectionPage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/pim/accountwizard/qml/ManualConfigurationPage.qml:12:1: QML ManualConfigurationPage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/pim/accountwizard/qml/DetailsPage.qml:12:1: QML DetailsPage: Created graphical object was not placed in the graphics scene.
kf.xmlgui: Index  27  is not within range (0 -  26 )
kf.xmlgui: Index  32  is not within range (0 -  25 )
"There are still \"1\" items in the process of being created at engine destruction."
org.kde.pim.mailtransport: Tried to update password state of non-cloned transport.
qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.kde.kioclient'")



EXPECTED RESULT

Visible and working IMAP account :-)

SOFTWARE/OS VERSIONS
KMail: 6.6.0 (25.12.0)
KDE Frameworks: 6.21.0
Qt: 6.10.1 is used and was built with 6.10.1
Manjaro Linux (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.18.2-1-MANJARO
plasma-desktop 6.5.4

ADDITIONAL INFORMATION
Some akonadi output

org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f16440102c0) )
                                                                                                                                          org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f16440102c0) identified as "AgentBaseChangeRecorder - 94403464897392"
                                                qt.dbus.integration: QDBusConnection: couldn't handle call to setPassword, no slot matched
                                                                                                                                          qt.dbus.integration: QDBusConnection: couldn't handle call to setPassword, no slot matched
                                                                                                                                                                                                                                    qt.dbus.integration: Could not find slot SettingsAdaptor::setPassword
                                                         org.kde.pim.akonadiserver: Subscriber "MessageViewerMonitor - 94671385661328" disconnected
                                                                                                                                                   org.kde.pim.akonadiserver: Subscriber "KMail Kernel ETM - 94671384265376" disconnected
                                                                                                                                                                                                                                         org.kde.pim.akonadiserver: Subscriber "SpecialCollectionsMonitor - 94671383889280" disconnected
                                                                                        org.kde.pim.akonadiserver: Subscriber "MessageListTagMonitor - 94671387007184" disconnected
                                                                                                                                                                                   org.kde.pim.akonadiserver: Subscriber "TagActionManagerMonitor - 94671395380576" disconnected
                                org.kde.pim.akonadiserver: Subscriber "FilterManagerTagMonitor - 94671394897440" disconnected
                                                                                                                             org.kde.pim.akonadiserver: Subscriber "" disconnected
                                                                                                                                                                                  org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f1644065b90) )
                                                                 org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f1644065b90) )
                                                                                                                                                                                                org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f1644067fd0) )
                                                                               org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f16442b4ae0) )
                                                                                                                                                                                                              org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f1644126e80) )
                                                                                             org.kde.pim.akonadiserver: Subscriber "" disconnected
                                                                                                                                                  org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f16440ed610) )
                                 org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f16440eba40) )
                                                                                                                                                                org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f1644065b90) identified as "KMail Kernel ETM - 94883398698768"
                                                               org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f1644067fd0) identified as "SpecialCollectionsMonitor - 94883398512240"
                                                                                                                                                                                                                       org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f16442b4ae0) identified as "MessageListTagMonitor - 94883401530944"
                                                                                                                           org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f16440ed610) identified as "MessageViewerMonitor - 94883400408848"
                              org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f16440ed610) identified as "MessageViewerMonitor - 94883400408848"
                                                                                                                                                                                 org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f16440eba40) identified as "TagActionManagerMonitor - 94883410139248"
                                                                                       org.kde.pim.akonadiserver: New notification connection (registered as Akonadi::Server::NotificationSubscriber(0x7f1644067e50) )
                                                                                                                                                                                                                      org.kde.pim.akonadiserver: Subscriber Akonadi::Server::NotificationSubscriber(0x7f1644067e50) identified as "FilterManagerTagMonitor - 94883409668736"
                                                                                                                            org.kde.pim.akonadiserver: Subscriber "MessageViewerMonitor - 94883400408848" disconnected
                                                                                                                                                                                                                      org.kde.pim.akonadiserver: Subscriber "KMail Kernel ETM - 94883398698768" disconnected
                                                            org.kde.pim.akonadiserver: Subscriber "SpecialCollectionsMonitor - 94883398512240" disconnected
                                                                                                                                                           org.kde.pim.akonadiserver: Subscriber "MessageListTagMonitor - 94883401530944" disconnected
      org.kde.pim.akonadiserver: Subscriber "TagActionManagerMonitor - 94883410139248" disconnected
                                                                                                   org.kde.pim.akonadiserver: Subscriber "FilterManagerTagMonitor - 94883409668736" disconnected