Reply to topic

Kmail doesn't display folders created to Imap account

User avatar remus
Registered Member
Posts
26
Karma
0
OS
I can create folders on Imap account but Kmail doesn't show them. I can see those folders only in server side subscriptions list and I have enabled them. Tried to create another account but same issue. I can view those folders in other email clients such Thunderbird or create local folders without problem.

How could I make those folders visible?
User avatar einar
Administrator
Posts
2288
Karma
5
OS
Do you get any suspicious errors in .xsession-errors? Also try right clicking on the account name in the folders pane, then select "manage local subscriptions" and try to add the folders there.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar remus
Registered Member
Posts
26
Karma
0
OS
Tried to launch Kmail from terminal and I do get some errors. Pasted below. Some more in .xserssion-errors: http://pastebin.com/3uH8CMjD. Message in brackets is freely translated. I can create local foulders but I would prefer to make them on Imap account. I've disabled Nepomuk but that shouldn't be problem for creating folders, right?

Code: Select all
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
"/usr/bin/kmail(8030)" Soprano: "Could not connect to server at /tmp/ksocket-[username]/nepomuk-socket (No such file or directory)"
"/usr/bin/kmail(8030)" Soprano: "Could not connect to server at /tmp/ksocket-[username]/nepomuk-socket (No such file or directory)"
"/usr/bin/kmail(8030)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/kmail(8030)" Soprano: "Invalid iterator."
(...and same lines few more time)
User avatar einar
Administrator
Posts
2288
Karma
5
OS
Nepomuk only handles the email searching part, so yes, no relation to IMAP troubles. What does "manage local subscriptions" (see my post above) say?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar remus
Registered Member
Posts
26
Karma
0
OS
einar wrote:Nepomuk only handles the email searching part, so yes, no relation to IMAP troubles. What does "manage local subscriptions" (see my post above) say?


It doesn't display those folders either so I don't see a way to add folders there.
User avatar einar
Administrator
Posts
2288
Karma
5
OS
Can you try creating a new IMAP account with the same parameters and see if the issue persists?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar remus
Registered Member
Posts
26
Karma
0
OS
einar wrote:Can you try creating a new IMAP account with the same parameters and see if the issue persists?


Tried that and couldn't see any difference. Created also another account on another computer (also KDE 4.9.5). There I could see folders I've created before but when I created new ones they weren't displayed. xsessionerrors looks quite similar: http://pastebin.com/j6YYJDqZ
User avatar einar
Administrator
Posts
2288
Karma
5
OS
Code: Select all
 
Error during executing query "INSERT INTO CollectionTable (remoteId, remoteRevision, name, parentId, resourceId, cachePolicyInherit) VALUES (:0, :1, :2, :3, :4, :5)" :  "Duplicate entry '15-UusTestT60' for key 'CollectionTable_parentAndNameIndex' QMYSQL3: Unable to execute statemen


This looks like the culprit. You likely have some data in the database which has a local ID but not a remote ID (the remote ID is the name of your folder on the IMAP server, for example), or vice versa.

Let's try the following:

1. Launch "akonadiconsole"
2. Go to "DB Console" tab
3. Type in the bottom box:
Code: Select all
SELECT * from CollectionTable WHERE remoteId = "";

4. Hit the gear icon to execute the statement
See if any entries are returned. If we have some, I think we can fix this issue.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar remus
Registered Member
Posts
26
Karma
0
OS
There's one entry in Akonadi Console after doing that:
Image

Renamed Kmail setting files and made new accounts if that would make any difference. Also updated Kde to 4.10. Now DB console doesn't display any entries. Kmail displayed all the folders I had created before but if I try to create a new one it still won't display. .xsession-erros shows that same error message about the new folder.
User avatar einar
Administrator
Posts
2288
Karma
5
OS
Retry that query. If it shows up something, make a backup then remove that line with

Code: Select all
DELETE FROM CollectionTable WHERE remoteId = "";


I stress it again, make a backup, because you're going to touch the data structures directly. Once you remove the lines without "remoteId", the new folders will show up regularly. (I know because I've been hit by this bug in the 4.8 days).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
gerardd
Registered Member
Posts
1
Karma
0
OS
I also hit this problem, but the solutions offered didn't work for me, but gave me sufficient clues to start digging and finding a solution. This is what I did:
1) stop Kontact/Kmail etc.
2) start akonadiconsole
3) in DB console I entered following query: SELECT * from CollectionTable;
4) In the output result I discovered that the map that wasn't showing up had a different format remoteid then other folders in this IMAP account, maps that showed up had remoteid '/folder', the map that didn't show up had this format 'ifolder'.
5) so next step in DBconsole, I fixed the format of remoteid with following query:
UPDATE CollectionTable SET remoteid='/folder' WHERE id='xx'; where xx was the id of the incorrect entry.
6) start Kontact and problem in mail was fixed, map did now show up in Kmail
User avatar mspringer
Registered Member
Posts
1
Karma
0
OS
gerardd wrote:I also hit this problem, but the solutions offered didn't work for me, but gave me sufficient clues to start digging and finding a solution. This is what I did:
1) stop Kontact/Kmail etc.
2) start akonadiconsole
3) in DB console I entered following query: SELECT * from CollectionTable;
4) In the output result I discovered that the map that wasn't showing up had a different format remoteid then other folders in this IMAP account, maps that showed up had remoteid '/folder', the map that didn't show up had this format 'ifolder'.
5) so next step in DBconsole, I fixed the format of remoteid with following query:
UPDATE CollectionTable SET remoteid='/folder' WHERE id='xx'; where xx was the id of the incorrect entry.
6) start Kontact and problem in mail was fixed, map did now show up in Kmail

This is the exact same procedure I followed for my missing folders.
I didn't even have to turn off Kontact/Kmail, I just re-checked the list of locally subscribed folders and Kmail updated itself.

WARNING!
off-topic
Now the only thing that's bugging me is Kmail choking up when the mail-server went missing for a short while.
I can fix it by checking the server side subscriptions, which somehow seems to kick the existing connection to the mail server and starts a new one.
And all is peachy again.
Smar
Registered Member
Posts
2
Karma
0
I can confirm just switching /FOOBAR to correct folder name .FOOBAR makes the folder appear again. Is there a bug about this already?
User avatar einar
Administrator
Posts
2288
Karma
5
OS
I'm not aware of it, so please file one at bugs.kde.org. Include a detailed explanation on how to trigger the issue as well.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar Dimitrios
Registered Member
Posts
644
Karma
0
OS
I think is about this bug:I think it is about this bug:
https://bugs.kde.org/show_bug.cgi?id=291143


«The magic continues...»
http://www.mageia.org
Image

 
Reply to topic

Bookmarks



Who is online

Registered users: Alexa [Bot], Baidu [Spider], Bing [Bot], bshah, Exabot [Bot], Google [Bot], grubaugh, Hans, Naver Yeti [Spider], onesandzeros, orbmiser, pedrorodriguez, pvonz, qwach, searchfgold6789, Uri_Herrera, Yahoo [Bot]