Fix mailbox prefix hierarchy#652
Conversation
Apparently some mail servers prefix their mailboxes by `INBOX` and hence the hierarchy logic previously detected those prefixes as parent folders. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
Tarball for testing: mail.tar.gz |
|
Hi @ChristophWurst will this log help? |
|
Thank you very much @ftoledo, this already helped a bit. Now I know that there's a capability for this and your server reports that. However, I do not see how the folder structure looks on your account. Which actions were performed when you enabled those logs? Could you maybe clear the file, load the mail app page and post those new logs again? That's when the mail app asks for a list of folders and thus the logs should contain that list. |
|
@ChristophWurst i dont see the folder list at the horde log. I delete and recreate the account. Can i increase some debug level to show these detail action ? |
No, actually it should log the full IMAP communication by default 🤔 |
|
@ChristophWurst maybe a telnet session can help? 110 list "" %
100 list "" "*"
|
|
@ftoledo perfect! In that case this PR should fix the hierarchy structure, as in not showing all folders as subfolder of INBOX. As noted in the description above, the UI will still show the |
|
@ChristophWurst yes the INBOX prefix still visible: |
|
@ftoledo just to double-check: the folder structure did not look like this before replacing the app with the provided archive - correct? Before, the drafts, sent and other folders were shown as subfolders of the inbox, if I understand the problem correctly. |
|
I have same view as expose in #618 with both store app and this lastest tarball =( |
That would be great. Could you please send me some credentials via mail? Thanks! |
|
@ChristophWurst : is the tarball in #618 already supposed to solve also the situation with Maildir subfolders with a specific prefix? That is, I have dovecot configured with which results in file system hierarchy layout: I tried the tarball #618, but I still see folder structure in the Mail app: |
What tarball? That's an old, unrelated issue, no?
Quoting myself from the patch description here
Your problem seems unrelated to this hierarchy bug. It look more like your folder separator isn't detected correctly. Please file a separate ticket for that. |
|
@ChristophWurst : appologies, new issue reported here: #689 |
@ftoledo hey, it seems I never received any credentials. Did you send them? |
|
I could test a new version, but I cannot offer any credentials for you, sorry. Currently I can open my sub folders but there are still too many prefixes there. E.g: |
|
As small information, sometimes you also have subfolders in Inbox, Trash, Sent or Draft-Folder. Please do not forget those folders :-) |
|
Unable to continue my work on this with the information given. If you want this to get fixed, see #386 (comment). Thanks. |
|
@ChristophWurst Sorry the delay, i just send credentials for test to you gmail account |
|
how is this issue "closed" ? .. i still experience same behavior in 0.8.2 |

Apparently some mail servers prefix their mailboxes by
INBOXandhence the hierarchy logic previously detected those prefixes as parent
folders.
Ref #386
This only fixes the hierarchy problem. Folders will still be shown with a prefix. Since I'm fixing a problem without actually having an IMAP implementation with prefixes at hand, I'll fix this in smaller steps and let the community verify the fix.
cc @reubenlillie