RainLoop / rainloop-webmail

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

Default folder names set by "special use" setting in Dovecot does not work #363

Closed ervee closed 9 years ago

ervee commented 10 years ago

Based on comments made in this feature request: http://rainloop.uservoice.com/forums/223477-ideas-for-rainloop-webmail/suggestions/6488584-default-system-folders#comments

My Dovecot config snippet:

namespace inbox {
inbox = yes
location =
mailbox saved-drafts {
special_use = \Drafts
}
mailbox spam-mail {
special_use = \Junk
}
mailbox sent-mail {
special_use = \Sent
}
mailbox mail-trash {
special_use = \Trash
}
mailbox saved-messages {
special_use = \Archive
}
prefix =
}

When logging into RainLoop with a new user (or deleted all files in data/data[...snip...]/default/storage/cfg/#user-email#) only Spam has a mailbox-file assigned. And it is the wrong name, not the one supplied by the special use setting in Dovecot. Other folders have no setting (IE "Choose one").

RainLoop commented 10 years ago

Can you give me (support@rainloop.net) access credentials for test email account?

ervee commented 10 years ago

Perhaps this "telnet" output is sufficient:

. OK Pre-login capabilities listed, post-login capabilities have more.
0 LOGIN username password
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA
0 OK Logged in
0 select inbox
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 10 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1383658504] UIDs valid
* OK [UIDNEXT 16] Predicted next UID
* OK [NOMODSEQ] No permanent modsequences
0 OK [READ-WRITE] Select completed.
0 LIST "" "*"
* LIST (\NoInferiors \UnMarked) "/" "test-RL"
* LIST (\NoInferiors \UnMarked) "/" "test-file"
* LIST (\NoInferiors \UnMarked \Drafts) "/" "saved-drafts"
* LIST (\NoInferiors \UnMarked) "/" "test123"
* LIST (\NoInferiors \UnMarked) "/" "owm-map2"
* LIST (\HasNoChildren \UnMarked) "/" "inbox"
* LIST (\NoInferiors \UnMarked) "/" "Spam"
* LIST (\NoInferiors \UnMarked \Junk) "/" "spam-mail"
* LIST (\NoInferiors \UnMarked) "/" "owm-map"
* LIST (\NoInferiors \UnMarked \Archive) "/" "saved-messages"
* LIST (\NoInferiors \UnMarked \Trash) "/" "mail-trash"
* LIST (\NoInferiors \UnMarked) "/" "Mijnmappie"
* LIST (\NoInferiors \UnMarked) "/" "test1"
* LIST (\NoInferiors \UnMarked \Sent) "/" "sent-mail"
0 OK List completed.
0 LIST "" "#shared.*"
0 OK List completed.

You can see how the \Drafts , \Junk , \Archive , \Trash and \Sent mailboxes are communicated.

Please let me know if this is sufficient information because creating a temporary account is a bit of a hassle for me :)

RainLoop commented 9 years ago

Check please. I think it's already fixed.

ervee commented 9 years ago

Just checked with a new account and the folders are correctly assigned IF the folders exist. So I fixed my new user skeleton to include all the default folders and this seems to work fine.

Thank you!