Global (or host) configuration and user preferences merge
|Reported by:||cchantep||Owned by:|
Using latest 0.3-stable version, which I find great, I have some trouble with mbox names set in config/main.inc . As roundcube account auto creation is enabled, when a new user login, he have some empty values in his preferences, e.g. trash_mbox = . The trouble is that when those preferences are merged with global configuration, these empty values overide proper value from global configuration, and so for exemple such auto created account cannot find its removed messages in the trash, as trash folder is (same thing for sent folder).
I've codec a quick patch, which is not meant to be the best as I'm not an expert of roundcube code. This patch remove empty values from user preferences before merge with global configuration, so problem describe before was avoided. Maybe a it should only do it for some config/pref value (such as folder name), maybe it's account auto-creation code that should avoid adding such empty preferences.