fix(core): allow non top-level special folders and improved the doc around this

feature/mail-identities
Ludovic Marcotte 2020-06-09 14:38:01 -04:00
parent 3ef94da9d6
commit 1146038c76
3 changed files with 15 additions and 10 deletions

View File

@ -1749,7 +1749,7 @@ See the _Multi-domains Configuration_ section in this document for more
information.
|listRequiresDot (optional)
|If set to `YES`, listing of this SQL source is only possible when performing a search (respecting the SOGoSearchMinimumWordLength parameter) or when explicitely typing a single dot.
|If set to `YES`, listing of this SQL source is only possible when performing a search (respecting the SOGoSearchMinimumWordLength parameter) or when explicitly typing a single dot.
Defaults to `YES` when unset.
|ModulesConstraints (optional)
@ -1862,16 +1862,18 @@ messages.
Defaults to `Drafts` when unset.
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Drafts`.
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Drafts`. You must use a `/` even if your real
IMAP separator is a `.`.
|U |SOGoSentFolderName
|Parameter used to set the IMAP folder name used to store sent messages.
Defaults to `Sent` when unset.
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Sent`.
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Sent`. You must use a `/` even if your real
IMAP separator is a `.`.
|U |SOGoTrashFolderName
|Parameter used to set the IMAP folder name used to store deleted
@ -1879,8 +1881,9 @@ messages.
Defaults to `Trash` when unset.
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Trash`.
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Trash`. You must use a `/` even if your real
IMAP separator is a `.`.
|U |SOGoJunkFolderName
|Parameter used to set the IMAP folder name used to store junk
@ -1888,8 +1891,9 @@ messages.
Defaults to `Junk` when unset.
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Junk`. Also see the SOGoMailJunkSettings for
Use a `/` as a hierarchy separator if referring to an IMAP subfolder.
For example: `INBOX/Junk`. You must use a `/` even if your real
IMAP separator is a `.`. Also see the SOGoMailJunkSettings for
more options regarding junk/not-junk actions.
|D |SOGoIMAPCASServiceName

View File

@ -24,6 +24,7 @@
//SOGoDraftsFolderName = Drafts;
//SOGoSentFolderName = Sent;
//SOGoTrashFolderName = Trash;
//SOGoJunkFolderName = Junk;
//SOGoIMAPServer = "localhost";
//SOGoSieveServer = "sieve://127.0.0.1:4190";
//SOGoSMTPServer = "smtp://127.0.0.1";

View File

@ -611,7 +611,7 @@
* @returns true if folder is eligible
*/
Mailbox.prototype.$canFolderAs = function() {
return this.type == 'folder' && this.level === 0;
return this.type == 'folder';
};
/**