*Edit: Updated for Nextcloud 17 and mail v 0.18.1
Note: if you are using another language besides English you will have to change the text Show all folders and Collapse folders
I was sick of having to expand all my mail folders to avoid this bug:
So I wrote this quick user script to automatically expand all my folders.
Using the Latest Firefox Quantum you will need Violent Monkey addon 2.8.27 ( Latest Violent Mokey no longer works Greasemonkey 4.3 however now works ) or greater, Open the Violent monkey dashboard and click the + sign to add a new script.
Past the following code, changing the yourdomain.tld to your domain:
Note: this loads the remote content jquery and waitForKeyElements.js, if you wish to have them bound locally open the // @require links and past the contents at the /* Paste Here */ line. Then just delete the lines:
The following is a Greasemonkey script for expanding all mail folders automatically when opening Nextcloud Mail in Firefox. This is an update for [How To] Auto Expand mail folders using GreaseMonkey which works with Nextcloud 31.
Then in the Greasemonkey addon create a new script and paste the script below.
ATTENTION:
Make sure to replace cloud.example.com in the lines starting with @namespace and @include with your Nextcloud domain
Replace the text ‘Alle abonnierten Postfächer anzeigen’ with the English, French, Spanish, etc. text that you click in Nextcloud Mail to expand all of your subscribed folders. It needs to be exactly the text that the button shows, probably sth. like ‘Show all subscribed mailboxes’ in English.