Bug 300048 - Deleting folder broken
Summary: Deleting folder broken
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Kolab Resource (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 07:56 UTC by Dennis Schridde
Modified: 2013-11-20 11:23 UTC (History)
6 users (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 Dennis Schridde 2012-05-15 07:56:25 UTC
I tried to delete the folder "Sent mail" (which was created by my phone and not by Akonadi) on my IMAP account. In Kontact/KMail2 the folder always immediately reappears without any error message. When looking at the debugger in akonadiconsole, I see following messages:
---
akonadi_imap_resource_0 (0x1641930) 6021 LSUB 434 0 (RESOURCE akonadi_imap_resource_0) (STATISTICS true ANCESTORS INF) 
akonadi_imap_resource_0 (0x1641930) * 434 9 (NAME "Sent email" MIMETYPE (message/rfc822 inode/directory) REMOTEID "/Sent email" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_0" MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 5 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((9 ...) (0 "")) uidnext "1" collectionflags "\\Answered \\Flagged \\Deleted \\Seen \\Draft \\*" uidvalidity "1284650957") 
akonadi_imap_resource_0 (0x1641930) 6021 OK List completed 
akonadi_imap_resource_0 (0x1641930) 6022 SELECT SILENT 434 
akonadi_imap_resource_0 (0x1641930) 6022 OK Completed 
akonadi_imap_resource_0 (0x1641930) 6023 FETCH 1:* CACHEONLY EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE) 
akonadi_imap_resource_0 (0x1641930) 6023 OK FETCH completed 
KMail Kernel ETM (0x166e7e0) 149 SELECT SILENT 434 
KMail Kernel ETM (0x166e7e0) 149 OK Completed 
KMail Kernel ETM (0x166e7e0) 150 FETCH 1:* ANCESTORS INF EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME PLD:ENVELOPE) 
KMail Kernel ETM (0x166e7e0) 150 OK FETCH completed 
kontact-1484739682 (0x163db10) 119 LSUB 434 INF (MIMETYPE (message/rfc822)) () 
kontact-1484739682 (0x163db10) 119 OK List completed 
kontact-1484739682 (0x163db10) 120 DELETE 434 
kontact-1484739682 (0x163db10) 120 OK DELETE completed 
akonadi_kolabproxy_resource (0x164ba10) 83 RID DELETE "434" 
akonadi_kolabproxy_resource (0x164ba10) 83 NO No collection selected 
[...]
---

NotificationManager::notify ( Collection (434, /Sent email) in collection 9 removed )
AgentBase(akonadi_imap_resource_0): Fehler beim Löschen des Ordners; die Ordnerliste wird wiederhergestellt.
NotificationManager::notify ( Collection (435, /Sent email) in collection 9 added )
NotificationManager::notify ( Collection (435, /Sent email) in collection 9 modified parts (uidnext, collectionflags, uidvalidity) )
---

Akonadi version: 1.7.2

Reproducible: Always
Comment 1 Dennis Schridde 2012-05-15 08:31:27 UTC
The folder, while failed deletion was reproducible several times, is now gone after trying again.
Comment 2 Dennis Schridde 2012-05-25 10:12:48 UTC
(In reply to comment #1)
> The folder, while failed deletion was reproducible several times, is now
> gone after trying again.
The issue is back...
Comment 3 Thomas Tanghus 2013-09-15 13:50:20 UTC
I also have this problem. I have a folder INBOX.Notifications.BoxeeHacks which I try to delete.
In akonadiconsole debug information view I get:

NotificationManager::notify ( Items () in collection 1007 removed )
NotificationManager::notify ( Collections ((1007,.BoxeeHacks)) in collection 66 removed )
AgentBase(akonadi_imap_resource_1): Failed to delete the folder, restoring folder list.
NotificationManager::notify ( Collections ((1050,.BoxeeHacks)) in collection 66 added )

And in the all tab:

kontact-936017334 (0x22767f0) 4019 DELETE 1054 
kontact-936017334 (0x22767f0) 4019 OK DELETE completed 
akonadi_imap_resource_1 (0x222ed70) 29225 LSUB 66 0 () (STATISTICS true ANCESTORS INF) 
akonadi_imap_resource_1 (0x222ed70) * 66 63 (NAME "Notifications" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".Notifications" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) collectionquota "440368128 1048576000" imapacl "administrators lrswicda % owner lrswicda %% " imapquota "ROOT %%%% STORAGE % 1024000 %%%% STORAGE % 430047" uidnext "-1" collectionflags "\\* \\Draft \\Answered \\Flagged \\Deleted \\Seen" uidvalidity "1315935953" AccessRights "a" timestamp "1378490810") 
akonadi_imap_resource_1 (0x222ed70) 29225 OK List completed 
akonadi_imap_resource_1 (0x222ed70) 29226 LSUB 506 0 (RESOURCE akonadi_imap_resource_1) (STATISTICS true ANCESTORS INF) 
akonadi_imap_resource_1 (0x222ed70) * 506 66 (NAME "currency-converter" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".currency-converter" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 MESSAGES 66 UNSEEN 0 SIZE 1749515 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) collectionquota "434748416 1048576000" imapquota "ROOT %%%% STORAGE % 1024000 %%%% STORAGE % 424559" uidnext "-1" collectionflags "$SIGNED $ATTACHMENT $SENT $REPLIED \\* \\Draft \\Answered \\Flagged \\Deleted \\Seen" uidvalidity "1341399276" imapacl "administrators lrswicda % owner lrswicda %% " timestamp "1378141625") 
akonadi_imap_resource_1 (0x222ed70) 29226 OK List completed 
akonadi_imap_resource_1 (0x222ed70) 29227 SELECT SILENT 506 
akonadi_imap_resource_1 (0x222ed70) 29227 OK Completed 
akonadi_imap_resource_1_body_checker (0x223c6a0) 11196 SELECT SILENT 506 
akonadi_imap_resource_1_body_checker (0x223c6a0) 11196 OK Completed 
akonadi_imap_resource_1 (0x222ed70) 29228 FETCH 1:* CACHEONLY EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE) 
akonadi_imap_resource_1_body_checker (0x223c6a0) 11197 FETCH 1:* CACHEONLY CHECKCACHEDPARTSONLY EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE 
---snip---
akonadi_imap_resource_1 (0x222ed70) 29292 CREATE "BoxeeHacks" 66 (MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" VIRTUAL 0 CACHEPOLICY (INHERIT true)) 
akonadi_imap_resource_1 (0x222ed70) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ) 
akonadi_imap_resource_1 (0x222ed70) 29292 OK CREATE completed 
akonadi_imap_resource_1 (0x222ed70) 29293 COMMIT 
akonadi_imap_resource_1 (0x222ed70) 29293 OK Commit completed 
akonadi_newmailnotifier_agent (0x2238270) 158 LSUB 1055 0 () (ANCESTORS INF) 
Archive Mail Kernel ETM (0x21d7a10) 1374 LSUB 1055 0 () (STATISTICS true ANCESTORS INF) 
kalarm-1223389481 (0x21ea0a0) 4074 LSUB 1055 0 () (ANCESTORS INF) 
kalarm-1223389481 (0x21ea0a0) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) ) 
kalarm-1223389481 (0x21ea0a0) 4074 OK List completed 
akonadi_nepomuk_feeder (0x2232b00) 867 LSUB 1055 0 () () 
akonadi_nepomuk_feeder (0x2232b00) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ) 
akonadi_nepomuk_feeder (0x2232b00) 867 OK List completed 
MailFilter Kernel ETM (0x2246d50) 1374 LSUB 1055 0 () (STATISTICS true ANCESTORS INF) 
ETMCalendar (0x21fa1c0) 14836 LSUB 1055 0 () (ANCESTORS INF) 
ETMCalendar (0x21fa1c0) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) ) 
ETMCalendar (0x21fa1c0) 14836 OK List completed 
akonadi_newmailnotifier_agent (0x2238270) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) ) 
akonadi_newmailnotifier_agent (0x2238270) 158 OK List completed 
MailFilter Kernel ETM (0x2246d50) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) ) 
MailFilter Kernel ETM (0x2246d50) 1374 OK List completed 
Archive Mail Kernel ETM (0x21d7a10) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) ) 
Archive Mail Kernel ETM (0x21d7a10) 1374 OK List completed 
ETMCalendar (0x21ea4b0) 14850 LSUB 1055 0 () (ANCESTORS INF) 
KMail Kernel ETM (0x22cc8b0) 1902 LSUB 1055 0 () (STATISTICS true ANCESTORS INF) 
ETMCalendar (0x21ea4b0) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) ) 
ETMCalendar (0x21ea4b0) 14850 OK List completed 
KMail Kernel ETM (0x22cc8b0) * 1055 66 (NAME "BoxeeHacks" MIMETYPE (message/rfc822 inode/directory) REMOTEID ".BoxeeHacks" REMOTEREVISION "" RESOURCE "akonadi_imap_resource_1" VIRTUAL 0 MESSAGES 0 UNSEEN 0 SIZE 0 CACHEPOLICY (INHERIT true INTERVAL 15 CACHETIMEOUT -1 SYNCONDEMAND true LOCALPARTS (ENVELOPE HEAD RFC822)) ANCESTORS ((66 ".Notifications") (63 ".INBOX") (62 "imap://xxx@xxx.com/") (0 "")) ) 
KMail Kernel ETM (0x22cc8b0) 1902 OK List completed 


I believe my provider is using Courier IMAP
Comment 4 Thomas Tanghus 2013-09-15 13:51:32 UTC
I forgot: Kontact, Version 4.11.1
Comment 5 Daniel Vrátil 2013-09-15 14:28:27 UTC
Thomas, do you use Kolab Proxy resource? If not, your problem is caused by something different (possibly by the same bug as bug 324219), so please open a separate bug report.


The bug Dennis experiences is caused by the Kolab proxy resource, which tries to delete the collection even though it might not exist (for example because the collection belongs to a non-Kolab resource). I can reproduce it too on a non-kolab IMAP resource while having Kolab Proxy resource (due to another IMAP account with Kolab), so reassigning to Kolab.
Comment 6 Thomas Tanghus 2013-09-15 14:39:06 UTC
(In reply to comment #5)
> Thomas, do you use Kolab Proxy resource? If not, your problem is caused by
> something different (possibly by the same bug as bug 324219), so please open
> a separate bug report.

Thanks Daniel. I'll open a separate report.
Comment 7 Christian Mollekopf 2013-11-20 11:23:50 UTC
The kolabproxy resource issue is fixed in 55954dc (master), the path separator issue in a separate report and an issue that empty folders could not be deleted has been fixed in f35821b.