Bug 258258

Summary: Can't delete an e-mail
Product: [Applications] kmail2 Reporter: Gael Beaudoin <gaboo>
Component: commands and actionsAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: aspotashev, fabian, georg298, kdebugs
Priority: NOR    
Version: 2.0.90   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gael Beaudoin 2010-11-29 08:49:49 UTC
Version:           2.0 beta1 (using KDE 4.5.80) 
OS:                Linux

I have 3 imap account. In one of them (and only  one of them, and always the same), I sometimes cannot delete an email when. Nothing happens, there is no delete context menu.

The only thing that could help is this message in the console when hitting the delete button :

kmail2(5413)/libakonadi Util::showJobError: There is no GUI delegate set for a kjob, and it failed with error: "Unknown error. (No collection found)"

If I wait and try again later (a few minutes), it sometimes work.



Reproducible: Sometimes

Steps to Reproduce:
- Open kmail
- open the said imap account
- Try to delete an em-ail => does nothing.
Comment 1 Georg Hennig 2011-06-12 20:52:28 UTC
I can confirm this bug (Gentoo, KDE 4.6.4, kmail 2.1.0): 2 DIMAP accounts, sometimes it's not possible to delete a message in one account.
Error on the command line:

kmail2(5328)/libakonadi Util::showJobError: There is no GUI delegate set for a kjob, and it failed with error: "Unknown error. (No collection found)"

Same error, when trying Edit -> Move to trash.
Restarting kmail "solves" the problem.
Comment 2 Fabian 2012-07-03 09:10:35 UTC
Same here 
Kontact 4.8.4

Delete does not work sometimes. Restarting "solves" the problem.

Errors on the command line:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kontact(7933)/kdepimlibs (mailtransport): Could not access Outbox.
kontact(7933) showJobError: There is no GUI delegate set for a kjob, and it failed with error: "Unbekannter Fehler. (No collection found)"


Debug output on the akonadi console:
Working:
kontact-719950939 (0x8618c0) 15 UID FETCH 57646 FULLPAYLOAD ALLATTR ANCESTORS 1 EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME ATR:ErrorAttribute)

kontact-719950939 (0x8618c0) * 57646 FETCH (UID 57646 REV 3 REMOTEID "79992" MIMETYPE "message/rfc822" ...
kontact-719950939 (0x8618c0) 15 OK UID FETCH completed

kontact-719950939 (0x8618c0) 16 UID FETCH 57646 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME PLD:HEAD)

kontact-719950939 (0x8618c0) * 57646 FETCH (UID 57646 REV 3 REMOTEID "79992" MIMETYPE "message/rfc822" ...
kontact-719950939 (0x8618c0) 16 OK UID FETCH completed

kontact-719950939 (0x8618c0) 17 UID FETCH 57646 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME PLD:HEAD)

kontact-719950939 (0x8618c0) * 57646 FETCH (UID 57646 REV 3 REMOTEID "79992" MIMETYPE "message/rfc822"...

kontact-719950939 (0x8618c0) 17 OK UID FETCH completed

kontact-719950939 (0x8618c0) 18 SEARCH "prefix nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT ?person WHERE { graph ?g { ?person <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?itemId . ?person a nco:PersonContact ; nco:hasEmailAddress ?email . ?email nco:emailAddress \"gewinnspiel@newsletter.hrs.com\"^^<http://www.w3.org/2001/XMLSchema#string> . } }" FULLPAYLOAD EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME)

kontact-719950939 (0x8618c0) 18 OK SEARCH completed

kontact-719950939 (0x8618c0) 19 UID FETCH 57652 FULLPAYLOAD ALLATTR ANCESTORS 1 EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME ATR:ErrorAttribute)

kontact-719950939 (0x8618c0) * 57652 FETCH (UID 57652 REV 3 REMOTEID "79995" MIMETYPE "message/rfc822"...
kontact-719950939 (0x8618c0) 19 OK UID FETCH completed

kontact-719950939 (0x8618c0) 20 UID FETCH 57652 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME PLD:HEAD)

kontact-719950939 (0x8618c0) * 57652 FETCH (UID 57652 REV 3 REMOTEID "79995" MIMETYPE "message/rfc822"...


not working:
kontact-719950939 (0x85e780) 1130 UID FETCH 57646 FULLPAYLOAD ALLATTR ANCESTORS 1 EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME ATR:ErrorAttribute)

kontact-719950939 (0x85e780) * 57646 FETCH (UID 57646 REV 3 REMOTEID "79992" MIMETYPE "message/rfc822" ...
kontact-719950939 (0x85e780) 1130 OK UID FETCH completed

kontact-719950939 (0x85e780) 1131 UID FETCH 57646 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME PLD:HEAD)

kontact-719950939 (0x85e780) * 57646 FETCH (UID 57646 REV 3 REMOTEID "79992" MIMETYPE "message/rfc822"...
kontact-719950939 (0x85e780) 1131 OK UID FETCH completed

kontact-719950939 (0x85e780) 1132 UID FETCH 57646 FULLPAYLOAD ALLATTR EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME PLD:HEAD)

kontact-719950939 (0x85e780) * 57646 FETCH (UID 57646 REV 3 REMOTEID "79992" MIMETYPE "message/rfc822"...
kontact-719950939 (0x85e780) 1132 OK UID FETCH completed

kontact-719950939 (0x85e780) 1133 SEARCH "prefix nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT ?person WHERE { graph ?g { ?person <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?itemId . ?person a nco:PersonContact ; nco:hasEmailAddress ?email . ?email nco:emailAddress \"gewinnspiel@newsletter.hrs.com\"^^<http://www.w3.org/2001/XMLSchema#string> . } }" FULLPAYLOAD EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME)

kontact-719950939 (0x85e780) 1133 OK SEARCH completed

akonadi_nepomuk_feeder (0x872a90) 1198 UID FETCH 57670 FULLPAYLOAD CACHEONLY ANCESTORS 1 EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME)

akonadi_nepomuk_feeder (0x872a90) * 57670 FETCH (UID 57670 REV 1 REMOTEID "80002" MIMETYPE "message/rfc822"...
akonadi_nepomuk_feeder (0x872a90) 1198 OK UID FETCH completed
Comment 3 Andrey 2012-07-04 09:59:04 UTC
confirm this bug (Gentoo, KDE 4.8.3, kmail 4.8.3)

kmail2(19092) showJobError: There is no GUI delegate set for a kjob, and it failed with error: "Неизвестная ошибка. (No collection found)"
Comment 4 Denis Kurz 2016-09-24 18:21:47 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 22:28:03 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.