[BUG]
If you have 'protect_default_folders' turned on in the configuration to protect folders listed in the 'default_imap_folders' configuration option, clicking on any other folder will cause all folders to be unprotected.
[CAUSE]
The set_busy function in app.js doesn't care what it's enabling / disabling. This function is called when the http_response function is called in regards to checking/unchecking a folder (subscribing/unsubscribing).
[FIX]
Find the function: this.http_response = function(request_obj) in app.js
Change this line:
this.set_busy(false);
To this:
if ( dblchk = request_obj.get_text() ) {
if ( dblchk.indexOf('// subscribed') < 0 && dblchk.indexOf('// unsubscribed') < 0 ) {
this.set_busy(false);
}
} else {
this.set_busy(false);
}
This will cause the response sent back in manage_folder.inc to be checked. If we're subscribing or unsubscribing, then don't call set_busy.