Bug 337497

Summary: Fails to retrieve folders if there are sub-folders with same name
Product: [Frameworks and Libraries] Akonadi Reporter: Emil Sedgh <emilsedgh>
Component: Gmail resourceAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs
Priority: NOR    
Version: GIT (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.13.90

Description Emil Sedgh 2014-07-16 14:07:52 UTC
Gmail resource fails to retrieve folders and their contents with this message:

akonadi_gmail_resource_0(26107) ImapResourceBase::onMetadataCollectionFetchDone: Failed to retrieve collection before RetrieveCollectionMetadataTask  "Hierarchical RID does not specify a unique collection"

This, apparently, happens when there are subfolders with the same name.
Comment 1 Daniel Vrátil 2014-07-16 14:39:22 UTC
Git commit 73a9b5f18ff3f76b3bd262252b79dfbcd37d827c by Dan Vrátil.
Committed on 16/07/2014 at 14:37.
Pushed by dvratil into branch 'KDE/4.14'.

Gmail resource: ignore the [Gmail]/Chats folder for now

Chats is a special folder, it's content is not owned by 'All Mail' folder
and does not work as a label either. This breaks sync for some reason, so
we disable the folder for now.

The folder is not exposed via IMAP by default, it has to be explicitly
enabled in Gmail web interface, and it contains preprocessed hangout
logs in the form of emails, which I don't see much use for in KMail
anyway.
FIXED-IN: 4.13.90

M  +9    -0    resources/gmail/gmailretrievecollectionstask.cpp

http://commits.kde.org/kdepim-runtime/73a9b5f18ff3f76b3bd262252b79dfbcd37d827c