RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.1k stars 883 forks source link

[Feature Request] Implement IMAP Path Prefix #1478

Open akmet opened 7 years ago

akmet commented 7 years ago

Hey, I just noticed that there is currently no way to set a Maildir Prefix. In addition that the system folders (like sent, drafts, ..) can only be on root level, some of us (including me :-P) may cannot use the correct folders they need.

Here is a short example of the folder structure of one of my mail accounts:

A LIST "" *
* LIST (\NoInferiors \Marked) "/" "Trash"
* LIST (\NoInferiors \Marked) "/" "Drafts"
* LIST (\NoInferiors \Marked) "/" "Sent"
* LIST (\NoSelect \HasChildren) "/" "Mail"
* LIST (\NoInferiors \Marked) "/" "Mail/Junk"
* LIST (\NoInferiors \Marked) "/" "Mail/Sent"
* LIST (\NoInferiors \Marked) "/" "Mail/Trash"
* LIST (\NoSelect \HasChildren) "/" "Mail/Private"
* LIST (\NoSelect \HasChildren) "/" "Mail/Private/Stuff"
* LIST (\NoInferiors \Marked) "/" "Mail/Private/Stuff"
* LIST (\NoInferiors \Marked) "/" "Mail/Private/Server"
* LIST (\NoInferiors \Marked) "/" "Spam"
* LIST (\NoInferiors \Marked) "/" "INBOX"
A OK List completed.

While INBOX is still on root, all other used system folders are subfolders of Mail.

I would like to suggest that we add the path prefix inside the domain settings and then all accounts can map the folders correctly when retrieving it.

What do you think about it?

akmet commented 7 years ago

Just noticed when adding a "Mail/" infront of MailSo\Mail\MailClient::Folders' $sParent I can select subfolders as system folders. When not adding this, I can just select between the Mail Folders listed above.

Can anyone else confirm this behavior?