the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
1.01k stars 121 forks source link

Option to show all folders, subscribed or not. #69

Closed realsimix closed 3 years ago

realsimix commented 3 years ago

Is your feature request related to a problem? Please describe. It would be nice to have an option to show all folders, regardless whether they are subscribed or not.

Describe the solution you'd like Simply have an option 'Show all folders'.

Describe alternatives you've considered Maybe some auto subscribe feature would also work but seems more complicate.

Additional context The same would be nice to have for 'check for new mail' as well but I understand that is a quite expensive thing even with IDLE support. However, just showing the folders should be doable if 'imap_folder_list_limit' is set high enough.

Thanks, Simon

the-djmaze commented 3 years ago

You can disable the subscribe option. /_data_/_default_/configs/application.ini use_imap_list_subscribe = Off

realsimix commented 3 years ago

Thanks, that's nice to know. So it's there, only no option in the admin panel for it.

Thanks, Simon

realsimix commented 3 years ago

BTW, I found this key is not used, maybe it could be removed?

diff -Nau a/app/libraries/RainLoop/Config/Application.php b/app/libraries/RainLoop/Config/Application.php
--- a/app/libraries/RainLoop/Config/Application.php 2021-03-25 13:54:51.000000000 +0100
+++ b/app/libraries/RainLoop/Config/Application.php 2021-03-26 16:45:26.839106217 +0100
@@ -306,7 +306,6 @@
            ),

            'labs' => array(
-               'ignore_folders_subscription' => array(false),
                'update_channel' => array('stable'),
                'allow_prefetch' => array(true),
                'allow_smart_html_links' => array(true),
the-djmaze commented 3 years ago

Yes can be removed then

the-djmaze commented 3 years ago

Added your feature request

realsimix commented 3 years ago

Thanks, very nice!

the-djmaze commented 3 years ago

Made a little improvement to always hide \noselect folders.

realsimix commented 3 years ago

I just found a little cosmetic error: when switching "Hide unsubscribed folders" to on, the folder list gets adjusted immediately. When switching "Hide unsubscribed folders" to off, the folder list doesn't get updated until you reload the page.

Somehow the folder refresh is missing.

phsc84 commented 3 years ago

This is also the case, when you create a subfolder, e.g. folder "test" is created in root. It directly appears after creating it. Then you create folder "test2" with "test" as parent. The folder "test2" is not shown until you reload the page.

mohsensaeedi commented 2 months ago

How we can hide unsubscribed folder for all users by default? I set many options in application.ini and none of them works for me

the-djmaze commented 2 months ago

They are user specific settting.

mohsensaeedi commented 1 month ago

I know but we enabled EXPUNGE folder to keep deleted email by user for 10 days and we want disable unsubscribe folder by default. Some users get confused when they see it. So i think it is necessary to have this option as global option in application.ini

the-djmaze commented 1 month ago

Folders do not expunge, the messages are. And since people can use other mail applications, i see no use for bending the rules. It will only confuse people even more.

mohsensaeedi commented 1 month ago

I do not explain well. We can activate the EXPUNGE for users in the Dovecot service. But we don't want to display this folder (Dovecot automatically creates .EXPUNGE folder) for users But there is no general setting for this.

Another question is: we wrote a plugin that called FirstLogin. how we can set default setting for some specific settings?