Closed handkerchief333 closed 2 weeks ago
When renaming folders that they still respect the hierarchy they are in.
Keep the browser console and network log open. Inspect the POST request sent when the mailbox is created. Tell us what is sent for name
.
I can't reproduce.
Console log:
{"mailbox":{"databaseId":115,"id":"Q2xhbmBlbi9Db2xkL3Rlc2Y=","name":"TestA/TestB/test","accountId":17,"displayName":"test","attributes":[],"delimiter":"/","specialUse":[],"specialRole":0,"mailboxes":[],"syncInBackground":false,"unread":0,"myAcls":null,"shared":false,"envelopeLists":{},"path":"TestA/TestB"}}
Postmessage:
{"accountId":17,"name":"TestA/TestB/test"}
Ok I created folder "test" in folder "TestB". Interesting fact. In the folder list, folder "TestB" is at the top level and folder "TestA" is also without displayed subfolders. So there seems to be something wrong with the hierarchy display.
Hey, I also faced this problem with renaming a subfolder. To solve it, I made the following code: File: src/components/NavigationMailbox.vue Function: renameMailBox()
[...] try { let newName = this.mailboxName if (this.mailbox.path) { newName = this.mailbox.path + this.mailbox.delimiter + newName } await this.$store.dispatch('renameMailbox', { account: this.account, mailbox: this.mailbox, newName, }) this.renameLabel = true this.renameInput = false [...]
Resuming, I concatenated the whole path to folder's name.
Hope it helps Thanks :D
Steps to reproduce
Expected behavior
Actual behavior
Mail app version
3.5.6
Mailserver or service
No response
Operating system
FreeBSD 13.2
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database
MariaDB
Additional info
Nextcloud v. 28.0.2