When having folders with subfolders on an IBM Lotus domino IMAP server, mails in subfolders are not always shown. More specifically, it seems that only mails moved by akonadi are visible. Mails put into the mailboxes by other means (other clients, server-side filtering) are not visible to akonadi. When opening the progress display, an error message is visible briefly. Top-level folders behave properly, all mails are visible, no error messages appear. Reproducible: Always Steps to Reproduce: 1. Set up a Domino server 2. Create folders with subfolders 3. Move mails into them with e.g. Thunderbird, IBM Notes, ... 4. Look at folders in kmail Actual Results: No mails are shown in kmail, mails are shown in Notes. Expected Results: Mails are shown in kmail. This excerpt from akonadi's KIMAP_LOGFILE shows a kmail session from akonadictl restart, then selecting a (broken) subfolder, then selecting a (working) top-level folder. C: A000003 CAPABILITY S: * CAPABILITY IMAP4rev1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS S: A000003 OK CAPABILITY completed C: A000004 NAMESPACE S: * NAMESPACE ( ("" "\\") ) ( ("Andere Benutzer\\" "\\") ) ( ("&ANY-ffentliche Ordner\\" "\\") ) S: A000004 OK NAMESPACE completed C: A000005 LIST "" * [... partially redacted ...] S: * LIST ( \Noinferiors \HasNoChildren ) \ Inbox S: * LIST ( \HasNoChildren ) \ Organisatorisches S: * LIST ( \HasChildren ) \ Projekte S: * LIST ( \HasNoChildren ) \ Projekte\Diss S: * LIST ( \HasNoChildren ) \ Sent S: * LIST ( \HasNoChildren ) \ Spam S: * LIST ( \Noinferiors \HasNoChildren ) \ Trash S: A000005 OK LIST completed C: A000006 SELECT "Projekte\\Diss" S: * 204 EXISTS S: * 0 RECENT S: * OK UIDs valid [ UIDVALIDITY 33554470 ] S: * OK Predicted next UID [ UIDNEXT 205 ] S: * FLAGS ( \Flagged \Seen \Answered \Deleted \Draft ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Flagged \Seen \Answered \Deleted \Draft \* ) ] S: A000006 OK SELECT completed [ READ-WRITE ] C: A000007 EXPUNGE S: A000007 OK EXPUNGE completed C: A000008 SELECT "Projekte\\\\Diss" S: A000008 NO SELECT failure, cannot select mailbox: Folder not found in IMAP name space C: A000009 GETQUOTAROOT "Projekte\\Diss" S: * QUOTAROOT Projekte\Diss S: * QUOTA ( STORAGE 634624 25600000 ) S: A000009 OK GETQUOTAROOT completed C: A000010 SELECT "Projekte\\Diss" S: * 204 EXISTS S: * 0 RECENT S: * OK UIDs valid [ UIDVALIDITY 33554470 ] S: * OK Predicted next UID [ UIDNEXT 205 ] S: * FLAGS ( \Flagged \Seen \Answered \Deleted \Draft ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Flagged \Seen \Answered \Deleted \Draft \* ) ] S: A000010 OK SELECT completed [ READ-WRITE ] C: A000011 EXPUNGE S: A000011 OK EXPUNGE completed C: A000012 SELECT "Projekte\\\\Diss" S: A000012 NO SELECT failure, cannot select mailbox: Folder not found in IMAP name space C: A000013 GETQUOTAROOT "Projekte\\Diss" S: * QUOTAROOT Projekte\Diss S: * QUOTA ( STORAGE 634624 25600000 ) S: A000013 OK GETQUOTAROOT completed C: A000014 SELECT "Organisatorisches" S: * 399 EXISTS S: * 0 RECENT S: * OK UIDs valid [ UIDVALIDITY 33554465 ] S: * OK Predicted next UID [ UIDNEXT 400 ] S: * FLAGS ( \Flagged \Seen \Answered \Deleted \Draft ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Flagged \Seen \Answered \Deleted \Draft \* ) ] S: A000014 OK SELECT completed [ READ-WRITE ] C: A000015 EXPUNGE S: A000015 OK EXPUNGE completed C: A000016 SELECT "Organisatorisches" S: * 399 EXISTS S: * 0 RECENT S: * OK UIDs valid [ UIDVALIDITY 33554465 ] S: * OK Predicted next UID [ UIDNEXT 400 ] S: * FLAGS ( \Flagged \Seen \Answered \Deleted \Draft ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Flagged \Seen \Answered \Deleted \Draft \* ) ] S: A000016 OK SELECT completed [ READ-WRITE ] C: A000017 GETQUOTAROOT "Organisatorisches" S: * QUOTAROOT Organisatorisches S: * QUOTA ( STORAGE 634624 25600000 ) S: A000017 OK GETQUOTAROOT completed C: A000018 EXPUNGE S: A000018 OK EXPUNGE completed C: A000019 SELECT "Organisatorisches" S: * 399 EXISTS S: * 0 RECENT S: * OK UIDs valid [ UIDVALIDITY 33554465 ] S: * OK Predicted next UID [ UIDNEXT 400 ] S: * FLAGS ( \Flagged \Seen \Answered \Deleted \Draft ) S: * OK Permanent flags [ PERMANENTFLAGS ( \Flagged \Seen \Answered \Deleted \Draft \* ) ] S: A000019 OK SELECT completed [ READ-WRITE ] C: A000020 GETQUOTAROOT "Organisatorisches" S: * QUOTAROOT Organisatorisches S: * QUOTA ( STORAGE 634624 25600000 ) S: A000020 OK GETQUOTAROOT completed Note the inconsistent usage of double / quadruple backslashes in SELECT commands.
I can confirm this problem. The same server works fine with other clients (e.g. Thunderbird). I had the same suspicion as Jörg that the problem might be related to the double encoded backslashes.
The original report is quite old, what's your kimap version ?
The problem still seems to be present in current versions (tested on Fedora 28): kf5-kimap-18.04.3-1.fc28.src.rpm KMail: 5.8.3 KDE Frameworks 5.48.0 Qt 5.11.1
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!