I am compiling the whole kdepim from source (master). This includes akonadi, libkgapi, kdepimlibs, kdepim, kdepim-runtime, etc. After fetching the "All mail" folder only the spam and bin folders get populated. All other folders are shown in both kmail and akonadiconsole but are empty. I get new mail notifications so the emails are being fetched alright but folders never get linked to tags after the initial fetch. There is also no way to manually triger the linking job.
Please enable "akonadi_gmail_resource*" and "kimap" in kdebugdialog, restart Akonadi from terminal (akonadictl restart) and try to reproduce, then please provide the output from Akonadi - there might be some useful information as to why the linking has failed.
Created attachment 87899 [details] console debug output
Created attachment 87900 [details] akonadi console debug output
(my previous message got somehow deleted) I can reproduce: only the Trash folder is populated and other ones are empty.
Created attachment 87907 [details] akonadi output Here is the console output. Note that I deleted a few of the lines containing things like akonadi_gmail_resource_9(26417)/kdepimlibs (kimap) RetrieveCollectionMetadataTask::doStart: "/NPower" as they contained personal information. I also deleted references to other resources for clarity. The output corresponds to a clean insertion of the resource, that is, I removed any gmail resource I had, restarted akonadi, ran 'akonadictl fsck; akonadictl vacuum'. Then I restarted akonadi again, at which point this log starts, fired kmail and added the resource. I used only the default values. The resource was added, performed an initial fetch and was marked as offline in kmail. I had to manually trigger a fetch from kmail in order for all the folders and the resource to go online. Not all the folders were fetched on the first attempt and not all of the folders were mentioned in the second fetch.
This bug no longer happens in current master.