kmail displays "No such file or directory" error message on startup with IMAP folder

Bug #427191 reported by Stilor
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KDE PIM
Unknown
Medium
kdepim (Ubuntu)
Invalid
Low
Unassigned

Bug Description

After I added an IMAP account to KMail, it started to display the "no such file or directory" message for one of the IMAP folders ("Other Users"). Right after I added that account, same error message was displayed for each of the IMAP folders, but they disappeared after the first run.

Package: kmail
Status: install ok installed
Priority: optional
Section: mail
Installed-Size: 9492
Maintainer: Kubuntu Developers <email address hidden>
Architecture: i386
Source: kdepim
Version: 4:4.3.1-0ubuntu1
Replaces: akonadi-kde (<< 4:4.1.3), kmail-kde4, kmailcvt (<< 4:3.90.0), kontact (<< 4:4.2.85)
Provides: imap-client, mail-reader
Depends: kdebase-runtime (>= 4:4.3.0), kdelibs5 (>= 4:4.3.1), kdepimlibs5 (>= 4:4.3.1), libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libindicate-qt0, libkdepim4 (= 4:4.3.1-0ubuntu1), libkleo4 (= 4:4.3.1-0ubuntu1), libkontactinterfaces4 (= 4:4.3.1-0ubuntu1), libkpgp4 (= 4:4.3.1-0ubuntu1), libksieve4 (= 4:4.3.1-0ubuntu1), libmimelib4 (= 4:4.3.1-0ubuntu1), libqt4-dbus (>= 4.5.1), libqt4-network (>= 4.5.1), libqt4-phonon (>= 4.5.1), libqt4-qt3support (>= 4.5.1), libqt4-xml (>= 4.5.1), libqtcore4 (>= 4.5.1), libqtgui4 (>= 4.5.1), libstdc++6 (>= 4.2.1), perl, kdepim-runtime
Recommends: gnupg, gnupg-agent, pinentry-qt4 | pinentry-qt | pinentry-x11
Suggests: kaddressbook, procmail, kleopatra, spamassassin | bogofilter | annoyance-filter | spambayes | bsfilter | crm114, clamav | f-prot-installer
Conflicts: kmail-kde4
Description: KDE Email client
 KMail is a fully-featured email client that fits nicely into the KDE
 desktop. It has features such as support for IMAP, POP3, multiple accounts,
 mail filtering and sorting, PGP/GnuPG privacy, and inline attachments.
 .
 This package is part of KDE, and a component of the KDE PIM module.
 See the 'kde' and 'kdepim' packages for more information.
Homepage: http://kontact.kde.org/kmail/
Original-Maintainer: Debian Qt/KDE Maintainers <email address hidden>

Revision history for this message
Stilor (stilor) wrote :
affects: ubuntu → kdepim (Ubuntu)
Revision history for this message
yope (djander) wrote :

I have the same problem on karmic with KMail 4.3.1. I cannot use KMail with my IMAP account.
I have posted a bug-report on the KDE site:

https://bugs.kde.org/show_bug.cgi?id=209208

Maybe that's a better place to get a quick reaction, since I am pretty confident the problem is not entirely ubuntu-specific.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Yes, bugs.kde.org is most always the best place for the bugs to land, as reporting them here depends on one of our limited amount of bug triagers to either search for an existing bug there or file one ourselves. Thanks for filing the upstream report.

Changed in kdepim (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Changed in kdepim:
status: Unknown → New
Revision history for this message
In , Dennis Schridde (devurandom) wrote :

Version: (using KDE 4.4.1)
Compiler: gcc 4.4.3 Gentoo 4.4.3 p1.0
OS: Linux
Installed from: Gentoo Packages

I recently forced a resync of my imap cache, which made a problem appear:
Upon startup, and when pressing OK or Accept in the configuration dialogue, KMail presents me 10 windows with following content:
"Error when opening /home/$USER/.kde4/share/apps/kmail/dimap/1668694697. This folder does not exist." [Translated]

A console log and a backtrace of that state is attached.

Examining the apps/kmail/dimap folder showed several .NUMBER.directory folders with no accompanying NUMBER folder.
Appart from several .SOMETHING.uidcache files, they contain only some .SOMETHING.directory folders:
.kde4/share/apps/kmail/dimap/.130708501.directory
.kde4/share/apps/kmail/dimap/.130708501.directory/.INBOX.directory
.kde4/share/apps/kmail/dimap/.1402182378.directory
.kde4/share/apps/kmail/dimap/.1402182378.directory/.somenamespace.directory
.kde4/share/apps/kmail/dimap/.1587347013.directory
.kde4/share/apps/kmail/dimap/.1668694697.directory
.kde4/share/apps/kmail/dimap/.1785330918.directory
.kde4/share/apps/kmail/dimap/.1785330918.directory/.somefolder.directory
.kde4/share/apps/kmail/dimap/.1991805192.directory
.kde4/share/apps/kmail/dimap/.1991805192.directory/.INBOX.directory

My theory is that I am seeing three different issues:
1) When deleting some IMAP accounts KMail "forgot" to delete all folders.
2) When resyncing imap caches, instead of ignoring or deleting the stale folders, KMail started messing with them, probably trying to recreate the uid caches.
3) The error handling during recreation of the uid caches is not verbose enough and displays just a default and uninformative error message.

This bug shows similarities with problem 1 in bug #209208.

Revision history for this message
In , Dennis Schridde (devurandom) wrote :

Created attachment 42422
backtrace after SIGINT while message boxes are displayed

Revision history for this message
In , Dennis Schridde (devurandom) wrote :

Created attachment 42423
console log

Revision history for this message
In , Dennis Schridde (devurandom) wrote :

I deleted the stale folders inside the dimap dir I mentioned above. The error messages are now gone.

Revision history for this message
In , Dennis Schridde (devurandom) wrote :

P.S: I recognize these folders (somenamespace and somefolder) as parts of imap accounts I had setup earlier.

Revision history for this message
In , Björn Ruberg (bjoern-ruberg-wegener) wrote :

Problem 1 in bug #209208 is yours. As this report is much more clean about this I mark 209208 as a duplicate.

Revision history for this message
In , Björn Ruberg (bjoern-ruberg-wegener) wrote :

*** Bug 209208 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Dennis Schridde (devurandom) wrote :

My statement "KMail presents me 10 windows with following content" above is inaccurate. Of course the actual folder varies, and the 10 windows each mention a different of the 10 folders.

Changed in kdepim:
status: New → Invalid
Changed in kdepim:
status: Invalid → Unknown
Changed in kdepim:
status: Unknown → New
Revision history for this message
Harald Sitter (apachelogger) wrote :

Closing in favor of KDE bug report, please refer there for updates. Thanks.

Changed in kdepim (Ubuntu):
status: Triaged → Invalid
Changed in kdepim:
importance: Unknown → Medium
Revision history for this message
In , Montel-3 (montel-3) wrote :

Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.

Changed in kdepim:
status: New → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.